| 1 | # Makefile for ConfigFile class |
| 2 | |
| 3 | CC = g++ |
| 4 | CFLAGS = -Wall -ansi |
| 5 | |
| 6 | all: example tester |
| 7 | |
| 8 | example: example.cpp ConfigFile.cpp |
| 9 | $(CC) $(CFLAGS) -o example example.cpp ConfigFile.cpp |
| 10 | |
| 11 | tester: tester.cpp ConfigFile.cpp |
| 12 | $(CC) $(CFLAGS) -o tester tester.cpp ConfigFile.cpp |
| 13 | |
| 14 | run: example |
| 15 | ./example | tee example.out |
| 16 | |
| 17 | test: tester |
| 18 | ./tester | tee test.out |
| 19 | |
| 20 | tidy: |
| 21 | @ rm -f *.o |
| 22 | |
| 23 | clean: tidy |
| 24 | @ rm -f example tester example.out test.out core* |