Makefile 670 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. CC = gcc
  2. CFLAGS = -std=c99
  3. # DEBUGGING FLAGS
  4. # CFLAGS = -ggdb -Wall -Wextra -pedantic -std=c99
  5. ifeq ($(OS),Windows_NT)
  6. CFLAGS += -lpdcurses
  7. else
  8. CFLAGS += -lncurses
  9. endif
  10. FalloutTerminal: main.o print.o intro.o pass.o wordParse.o getline.o getdelim.o
  11. $(CC) -o $@ $^ $(CFLAGS)
  12. main.o: main.c intro.c pass.c
  13. intro.o: intro.c print.c
  14. print.o: print.c
  15. pass.o: pass.c print.c
  16. wordParse.o: wordParse.c
  17. getline.o: getline.c
  18. getdelim.o: getdelim.c
  19. clean:
  20. ifeq ($(OS),Windows_NT)
  21. del *.o FalloutTerminal.exe
  22. else
  23. rm -f *.o FalloutTerminal
  24. endif
  25. debug: main.c print.c intro.c pass.c wordParse.c getline.c getdelim.c
  26. $(CC) -o FalloutTerminal $^ $(CFLAGS) -ggdb