1
0

Makefile 388 B

1234567891011121314151617181920212223
  1. # compiler
  2. CC = g++
  3. # compiler flags
  4. CFLAGS = -Wall -Werror -std=c++11
  5. # linked libraries
  6. LL = -lncurses
  7. # make first entry first
  8. all: main
  9. main: horse.o race.o
  10. $(CC) $(CFLAGS) -o hrtui Main.cpp horse.o race.o $(LL)
  11. horse.o: Horse.cpp Horse.h
  12. $(CC) $(CFLAGS) -c Horse.cpp -o horse.o
  13. race.o: Race.cpp Race.h
  14. $(CC) $(CFLAGS) -c Race.cpp -o race.o
  15. clean:
  16. rm hrtui winners.log *.o