Comment servir des pintes de Guinness "over Internet" ;) Reprise/Fork d'un très ancien code d'un pilier de f.m.b.l : http://tnemeth.free.fr/projets/guinness-server.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # Guinness Server from tnemeth
  3. #
  4. # Makefile handcrafted by tTh
  5. #
  6. all: guinness guinnessd
  7. # ---------------------------------------------------------
  8. H_DEP = broadcast.h commands.h defines.h guinnessd.h printlog.h \
  9. xmem.h clients.h config.h drinks.h lists.h tools.h
  10. COPT = -Wall -g
  11. D_OBJS = xmem.o broadcast.o printlog.o lists.o tools.o drinks.o \
  12. commands.o clients.o
  13. C_OBJS = xmem.o tools.o
  14. D_LIBS = -lpthread -lcrypt
  15. # ---------------------------------------------------------
  16. #
  17. # Main program
  18. #
  19. guinnessd: guinnessd.o Makefile $(D_OBJS)
  20. gcc -g $< $(D_OBJS) $(D_LIBS) -o $@
  21. guinnessd.o: guinnessd.c Makefile $(H_DEP)
  22. gcc $(COPT) -c $<
  23. #
  24. guinness: guinness.o Makefile $(D_OBJS)
  25. gcc -g $< $(C_OBJS) $(D_LIBS) -o $@
  26. guinness.o: guinness.c Makefile $(H_DEP)
  27. gcc $(COPT) -c $<
  28. # ---------------------------------------------------------
  29. #
  30. # modules needed by the daemon
  31. #
  32. broadcast.o: broadcast.c Makefile $(H_DEP)
  33. gcc $(COPT) -c $<
  34. printlog.o: printlog.c Makefile $(H_DEP)
  35. gcc $(COPT) -c $<
  36. lists.o: lists.c Makefile $(H_DEP)
  37. gcc $(COPT) -c $<
  38. xmem.o: xmem.c Makefile $(H_DEP)
  39. gcc $(COPT) -c $<
  40. tools.o: tools.c Makefile $(H_DEP)
  41. gcc $(COPT) -c $<
  42. drinks.o: drinks.c Makefile $(H_DEP)
  43. gcc $(COPT) -c $<
  44. commands.o: commands.c Makefile $(H_DEP)
  45. gcc $(COPT) -c $<
  46. clients.o: clients.c Makefile $(H_DEP)
  47. gcc $(COPT) -c $<
  48. # ---------------------------------------------------------