# set compiler used for builing program CC = g++ # gnu options GCCOPTS = -Wall -ansi -g # sun options CCOPTS = # options for c compiler COPTS = $(GCCOPTS) main.o: stack.h array_stack.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 stack.o: stack.h stack.cpp $(CC) -c $(COPTS) stack.cpp stack.ps: stack.h stack.cpp a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=stack.ps stack.h stack.cpp array_stack.o: stack.h array_stack.h array_stack.cpp $(CC) -c $(COPTS) array_stack.cpp array_stack.ps: array_stack.h array_stack.cpp a2ps -v --columns=1 -f 16 --no-header --borders no \ --landscape --output=array_stack.ps array_stack.h array_stack.cpp # make the test with an array_stack a.out: main.o stack.o array_stack.o $(CC) main.o stack.o array_stack.o clean: /bin/rm -f *.o a.out *.ps *.cpp.html *.h.html all: a.out echo "Done!" highlight: ../make_hl_html array_stack.cpp cpp ../;\ ../make_hl_html array_stack.h cpp ../;\ ../make_hl_html main.cpp cpp ../;\ ../make_hl_html stack.cpp cpp ../;\ ../make_hl_html stack.h cpp ../