makefile

##
# @file      makefile
# @author    Mitch Richling <http://www.mitchr.me/>
# @Copyright Copyright 2003 by Mitch Richling.  All rights reserved.
# @brief     Build a few boost examples.@EOL
# @Std       GNUmake

# Fix for local needs
CXX      = g++
CXXFLAGS = -Wall

# Uncomment to build all when make file changes
SPECDEP=makefile

# Put targets here
TARGETS = boostTokEx boostReEx1 boostRandEx spiritAsn threadSimple threadBind threadFunc threadCond intervalA

all : $(TARGETS)
	@echo Make Complete

clean :
	rm -rf a.out *~ *.bak $(TARGETS)
	@echo Make Complete

BOOSTIP = -I/opt/local/include
BOOSTLP = -L/opt/local/lib

boostTokEx : boostTokEx.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) boostTokEx.cpp -o boostTokEx

boostReEx1 : boostReEx1.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) boostReEx1.cpp -o boostReEx1 $(BOOSTLP) -lboost_regex

boostRandEx : boostRandEx.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) boostRandEx.cpp -o boostRandEx $(BOOSTLP) -lboost_regex

spiritAsn : spiritAsn.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) spiritAsn.cpp -o spiritAsn

threadBind : threadBind.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) threadBind.cpp -o threadBind $(BOOSTLP) -lboost_thread

threadSimple : threadSimple.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) threadSimple.cpp -o threadSimple $(BOOSTLP) -lboost_thread

threadFunc : threadFunc.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) threadFunc.cpp -o threadFunc $(BOOSTLP) -lboost_thread

threadCond : threadCond.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) threadCond.cpp -o threadCond $(BOOSTLP) -lboost_thread

intervalA : intervalA.cpp $(SPECDEP)
	$(CXX) $(CXXFLAGS) $(BOOSTIP) intervalA.cpp -o intervalA

Generated by GNU enscript 1.6.4.