Makefile 505 B

123456789101112131415
  1. PORT = 7418
  2. CFLAGS+= =DPORT=\$(PORT)
  3. all: boggle_server
  4. game_server.o: game_server.h
  5. gcc -g -Wall -Werror -std=gnu99 -c game_server.c
  6. boardGenerator.o: game_server.h
  7. gcc -g -Wall -Werror -std=gnu99 -c boardGenerator.c
  8. players.o: game_server.h
  9. gcc -g -Wall -Werror -std=gnu99 -c players.c
  10. boggle_server: game_server.o boardGenerator.o players.o
  11. gcc -g -Wall -Werror -std=gnu99 -o boggle_server game_server.o boardGenerator.o players.o
  12. clean:
  13. rm game_server.o boardGenerator.o players.o boggle_server