summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2011-06-19 11:35:21 +0000
committerBart De Schuymer <bdschuym@pandora.be>2011-06-19 11:35:21 +0000
commitcc17a4173a9ca3a53ea4645c79453e9958c88534 (patch)
tree10c014dc0d8df06251dfa917ec82aef83b825df0 /Makefile
parent410ebf9d318de6e0debaf932252b7aa6099639ae (diff)
rename the libebtc target to libebtc.so and remove the .PHONY for libebtc (thanks to Bertrand Jacquin)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index a4cc7be..6c0a279 100644
--- a/Makefile
+++ b/Makefile
@@ -82,11 +82,10 @@ ebtables.o: ebtables.c include/ebtables_u.h
ebtables-standalone.o: ebtables-standalone.c include/ebtables_u.h
$(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(PROGSPECS) -c $< -o $@ -I$(KERNEL_INCLUDES)
-.PHONY: libebtc
-libebtc: $(OBJECTS2)
+libebtc.so: $(OBJECTS2)
$(CC) -shared $(LDFLAGS) -Wl,-soname,libebtc.so -o libebtc.so -lc $(OBJECTS2)
-ebtables: $(OBJECTS) ebtables-standalone.o libebtc
+ebtables: $(OBJECTS) ebtables-standalone.o libebtc.so
$(CC) $(CFLAGS) $(CFLAGS_SH_LIB) $(LDFLAGS) -o $@ ebtables-standalone.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \
-Wl,-rpath,$(LIBDIR)
@@ -96,14 +95,14 @@ ebtablesu: ebtablesu.c
ebtablesd.o: ebtablesd.c include/ebtables_u.h
$(CC) $(CFLAGS) $(PROGSPECSD) -c $< -o $@ -I$(KERNEL_INCLUDES)
-ebtablesd: $(OBJECTS) ebtablesd.o libebtc
+ebtablesd: $(OBJECTS) ebtablesd.o libebtc.so
$(CC) $(CFLAGS) -o $@ ebtablesd.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \
-Wl,-rpath,$(LIBDIR)
ebtables-restore.o: ebtables-restore.c include/ebtables_u.h
$(CC) $(CFLAGS) $(PROGSPECS) -c $< -o $@ -I$(KERNEL_INCLUDES)
-ebtables-restore: $(OBJECTS) ebtables-restore.o libebtc
+ebtables-restore: $(OBJECTS) ebtables-restore.o libebtc.so
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ ebtables-restore.o -I$(KERNEL_INCLUDES) -L. -Lextensions -lebtc $(EXT_LIBSI) \
-Wl,-rpath,$(LIBDIR)