summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-29 21:06:42 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-29 21:34:54 +0200
commit5320e372ad25ba89f8c8f297066521f01e2e7a17 (patch)
treeec01da88daf65c714a7048e6dcb709152f7921de /Makefile
parent568f59d5efbd10fb9178a623b873bdddd4c01672 (diff)
downloadnlplug-5320e372ad25ba89f8c8f297066521f01e2e7a17.tar.bz2
nlplug-5320e372ad25ba89f8c8f297066521f01e2e7a17.tar.xz
Add initial implementation of nlplug
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b32c051..bbd1213 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,22 @@
+CFLAGS ?= -Wall -Werror -g
+CFLAGS += -D_GNU_SOURCE
nlsockd_SRCS = nlsockd.c
nlsockd_OBJS = $(nlsockd_SRCS:%.c=%.o)
+nlplug_SRCS = nlplug.c
+nlplug_OBJS = $(nlplug_SRCS:%.c=%.o)
+
+all: nlsockd nlplug
+
nlsockd: $(nlsockd_OBJS)
- echo $^
+
+nlplug: $(nlplug_OBJS)
+
+
+nlsockd nlplug:
$(CC) -o $@ $(CFLAGS) $($@_CFLAGS) $($@_OBJS) $(LDFLAGS) $($@_LDFLAGS)
+clean:
+ rm -f nlplug nlsockd