diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 |