0001-fix-Makefile.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. Makefile: fix rules
  2. In a Makefile, recipes should follow rules, there can not be variable
  3. definitions in-between.
  4. Although make-3.81 is happy about it, make-4.0 (and probably 3.82 too)
  5. do whine loudly.
  6. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  7. [Fabrice: update for 3.1.21]
  8. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  9. diff -durN smstools3-3.1.15.orig/src/Makefile smstools3-3.1.15/src/Makefile
  10. --- smstools3-3.1.15.orig/src/Makefile 2010-09-21 13:29:14.000000000 +0200
  11. +++ smstools3-3.1.15/src/Makefile 2014-09-01 22:27:02.719939329 +0200
  12. @@ -39,14 +39,13 @@
  13. all: smsd
  14. -smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o charshift.o
  15. -
  16. ifneq (,$(findstring SOLARIS,$(CFLAGS)))
  17. ifeq (,$(findstring DISABLE_INET_SOCKET,$(CFLAGS)))
  18. override LFLAGS += -lsocket -lnsl
  19. endif
  20. endif
  21. +smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o charshift.o
  22. ifneq (,$(findstring NOSTATS,$(CFLAGS)))
  23. $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)
  24. else