Click on Makefile to get source.
# set compiler used for builing program
#
# usage: make [a.out || a2.out] FLAGS="-g -DDEBUG"
#
CC = gcc
# gnu options
GCCOPTS = -Wall -ansi
# sun options
CCOPTS =
# options for c compiler
COPTS = $(GCCOPTS) $(FLAGS)
main.o: main.c
$(CC) -c $(COPTS) main.c
combin.o: combin.c
$(CC) -c $(COPTS) combin.c
combin2.o: combin2.c
$(CC) -c $(COPTS) combin2.c
a.out: main.o combin.o
$(CC) $(COPTS) main.o combin.o
a2.out: main.o combin2.o
$(CC) $(COPTS) -o a2.out main.o combin2.o
clean:
/bin/rm -f *.o a.out a2.out
all: a.out a2.out
echo "Done!"
highlight:
../../C++Examples/make_hl_html combin.c c ../
../../C++Examples/make_hl_html combin2.c c ../
../../C++Examples/make_hl_html main.c c ../
Makefile.html: Makefile
../../C++Examples/make_hl_html Makefile Makefile ../
html: Makefile.html
echo "made html"