Makefile 382 B

12345678910111213141516171819
  1. CC = gcc
  2. CFLAGS = -Wall -std=gnu99
  3. PORT=8087
  4. CFLAGS+= -DPORT=\$(PORT)
  5. default: boggle_server
  6. boggle_server: game_server.o players.o
  7. $(CC) $(CFLAGS) -o boggle_server game_server.o players.o
  8. game_server.o: game_server.c players.o game_server.h
  9. $(CC) $(CFLAGS) -c game_server.c
  10. players.o: players.c game_server.h
  11. $(CC) $(CFLAGS) -c players.c
  12. clean:
  13. rm game_server.o players.o