Makefile 490 B

12345678910111213141516171819202122232425262728293031
  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. rm -f *.o FalloutTerminal