# set compiler used for builing program # # usage: make [a.out || a2.out] FLAGS="-g -DDEBUG" # CC = gcc # gnu options GCCOPTS = -Wall -ansi -DDEBUG # 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 a3.out: main.c combin3.cpp g++ -o a3.out main.c combin3.cpp $(FLAGS) a4.out: main4.cpp combin4.cpp g++ -Wall -std=c++20 -DDEBUG -o a4.out main4.cpp combin4.cpp clean: /bin/rm -f *.o a.out a2.out a3.out a4.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 combin3.cpp cpp ../ ../../C++Examples/make_hl_html main.c c ../ ../../C++Examples/make_hl_html main4.cpp cpp ../ ../../C++Examples/make_hl_html combin4.cpp cpp ../ Makefile.html: Makefile ../../C++Examples/make_hl_html Makefile Makefile ../ html: Makefile.html echo "made html"