# set compiler used for builing program # you must "add gcc295" for this program to compile # CC = /usr/local/bin/g++-3.2 CC = g++ # gnu options GCCOPTS = -Wall -ansi -g # sun options CCOPTS = # options for c compiler COPTS = $(GCCOPTS) # binary code format: out for Unix, exe for XP # BIN = exe BIN = out main.o: prof.h main.cpp $(CC) -c $(COPTS) main.cpp main.ps: main.cpp a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=main.ps main.cpp main2.ps: main2.cpp a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=main2.ps main2.cpp main2A.ps: main2.cpp a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=main2A.ps main2A.cpp fire.ps: fire.cpp a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=fire.ps fire.cpp fire.o: prof.h fire.cpp $(CC) -c $(COPTS) fire.cpp hire.ps: hire.cpp a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=hire.ps hire.cpp hire.o: prof.h hire.cpp $(CC) -c $(COPTS) hire.cpp prof.ps: prof.h a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=prof.ps prof.h prof2.ps: prof2.h a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=prof2.ps prof2.h prof2A.ps: prof2A.h a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=prof2A.ps prof2A.h prof3.ps: prof3.h a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --$(BIN)put=prof3.ps prof3.h a.$(BIN): main.o hire.o fire.o $(CC) main.o hire.o fire.o a2.$(BIN): prof2.h main2.cpp $(CC) $(COPTS) -o a2.$(BIN) main2.cpp a2A.$(BIN): prof2A.h main2A.cpp $(CC) $(COPTS) -o a2A.$(BIN) main2A.cpp a3.$(BIN): prof3.h main3.cpp $(CC) $(COPTS) -o a3.$(BIN) main3.cpp a3A.$(BIN): prof3A.h main3A.cpp $(CC) $(COPTS) -o a3A.$(BIN) main3A.cpp clean: /bin/rm -f *.o a.$(BIN) *.ps a2.$(BIN) a3.$(BIN) a2A.$(BIN) a3A.$(BIN) all: a.$(BIN) a2.$(BIN) a2A.$(BIN) a3.$(BIN) a3A.$(BIN) echo "Done!" run: ./a.$(BIN) ./a2.$(BIN) ./a2A.$(BIN) ./a3.$(BIN) ./a3A.$(BIN) ./a.$(BIN);./a2.$(BIN);./a2A.$(BIN);./a3.$(BIN);./a3A.$(BIN) html: ../make_hl_html fire.cpp cpp ../;\ ../make_hl_html hire.cpp cpp ../;\ ../make_hl_html main2A.cpp cpp ../;\ ../make_hl_html main2.cpp cpp ../;\ ../make_hl_html main3A.cpp cpp ../;\ ../make_hl_html main3.cpp cpp ../;\ ../make_hl_html main.cpp cpp ../;\ ../make_hl_html prof2A.h cpp ../;\ ../make_hl_html prof2.h cpp ../;\ ../make_hl_html prof3A.h cpp ../;\ ../make_hl_html prof3.h cpp ../;\ ../make_hl_html prof.h cpp ../;