diff options
Diffstat (limited to 'rainbow/nss/Makefile')
-rw-r--r-- | rainbow/nss/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/rainbow/nss/Makefile b/rainbow/nss/Makefile index 056b5e7..6fe8dcf 100644 --- a/rainbow/nss/Makefile +++ b/rainbow/nss/Makefile @@ -9,16 +9,18 @@ WARNFLAGS = \ # Compiler flags for generating dependencies DEPFLAGS = -MMD -MP CFLAGS ?= -O3 +#CFLAGS ?= -O2 -g ALLCFLAGS = -std=gnu99 -fPIC $(WARNFLAGS) $(DEPFLAGS) $(CFLAGS) # declarations -RAINBOW_OBJS = nss-rainbow.o buf.o nat.o +RAINBOW_OBJS = nss-rainbow.o buf.o nat.o slist.o UIDS_OBJS = uids.o GIDS_OBJS = gids.o +TEST_SLIST_OBJS = test_slist.o slist.o TEST_NAT_OBJS = test_nat.o nat.o -ALL_OBJS = $(RAINBOW_OBJS) $(UIDS_OBJS) $(GIDS_OBJS) $(TEST_NAT_OBJS) -BINARIES = libnss_rainbow.so.2 uids gids test_nat +ALL_OBJS = $(RAINBOW_OBJS) $(UIDS_OBJS) $(GIDS_OBJS) $(TEST_SLIST_OBJS) $(TEST_NAT_OBJS) +BINARIES = libnss_rainbow.so.2 uids gids test_slist test_nat # targets @@ -38,6 +40,9 @@ install: # linked binaries +test_slist: $(TEST_SLIST_OBJS) + $(CC) $(ALLCFLAGS) -o $@ $^ + test_nat: $(TEST_NAT_OBJS) $(CC) $(ALLCFLAGS) -o $@ $^ |