Makefile 536 B

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