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