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.3KB

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