Makefile 394 B

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