$OpenBSD: patch-src_Makefile,v 1.4 2013/10/26 10:06:45 sthen Exp $
--- src/Makefile.orig	Sat Oct 26 10:58:51 2013
+++ src/Makefile	Sat Oct 26 11:02:16 2013
@@ -37,15 +37,15 @@ CFLAGS += -D_FILE_OFFSET_BITS=64
 # Use the following only on GNU/Linux and only if you need ps listing like "smsd: MAINPROCESS" and "smsd: GSM1"
 # CFLAGS += -D USE_LINUX_PS_TRICK
 
-all: smsd 
-
-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
-
 ifneq (,$(findstring SOLARIS,$(CFLAGS)))
 ifeq (,$(findstring DISABLE_INET_SOCKET,$(CFLAGS)))
 override LFLAGS += -lsocket -lnsl
 endif
 endif
+
+all: smsd 
+
+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
 
 ifneq (,$(findstring NOSTATS,$(CFLAGS)))
 	$(CC) $(CFLAGS) -o $@ $^ $(LFLAGS)
