Makefile 414 B

12345678910111213141516171819202122232425
  1. CC = gcc
  2. CFLAGS = -ggdb -Wall -Wextra -pedantic -std=c99
  3. ifeq ($(OS),Windows_NT)
  4. CFLAGS += -lpdcurses
  5. else
  6. CFLAGS += -lncurses
  7. endif
  8. FalloutTerminal: main.o print.o intro.o pass.o wordParse.o
  9. $(CC) -o $@ $^ $(CFLAGS)
  10. main.o: main.c intro.c pass.c
  11. intro.o: intro.c print.c
  12. print.o: print.c
  13. pass.o: pass.c print.c
  14. wordParse.o: wordParse.c
  15. clean:
  16. rm -f *.o FalloutTerminal
  17. #TODO conditional for Windows