Click on Makefile to get source.
# set compiler used for builing program
CC = gcc
# gnu options
GCCOPTS = -Wall -ansi -g
# sun options
CCOPTS =
# options for c compiler
COPTS = $(GCCOPTS)
main2.o: prof.h main2.c
$(CC) -c $(COPTS) main2.c
main.o: prof.h main.c
$(CC) -c $(COPTS) main.c
fire.o: prof.h fire.c
$(CC) -c $(COPTS) fire.c
hire.o: prof.h hire.c
$(CC) -c $(COPTS) hire.c
hire2.o: prof.h hire2.c
$(CC) -c $(COPTS) hire2.c
a.out: main.o hire.o fire.o
$(CC) main.o hire.o fire.o
a2.out: main2.o hire2.o fire.o
$(CC) -o a2.out main2.o hire2.o fire.o
main2.ps: main2.c
a2ps -v --columns=1 -f 18 --no-header --borders no \
--landscape --output=main2.ps main2.c
fire.ps: fire.c
a2ps -v --columns=1 -f 18 --no-header --borders no \
--landscape --output=fire.ps fire.c
prof.ps: prof.h
a2ps -v --columns=1 -f 18 --no-header --borders no \
--landscape --output=prof.ps prof.h
hire2.ps: hire2.c
a2ps -v --columns=1 -f 16 --no-header --borders no \
--landscape --output=hire2.ps hire2.c
clean:
/bin/rm -f *.o a.out a2.out *.ps
all: a.out
echo "Done!"
highlight:
../../C++Examples/make_hl_html prof.h c ../
../../C++Examples/make_hl_html fire.c c ../
../../C++Examples/make_hl_html hire2.c c ../
../../C++Examples/make_hl_html hire.c c ../
../../C++Examples/make_hl_html main2.c c ../
../../C++Examples/make_hl_html main.c c ../
../../C++Examples/make_hl_html turing.c c ../
Makefile.html: Makefile
../../C++Examples/make_hl_html Makefile Makefile ../