summaryrefslogtreecommitdiffstats
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
commit64c0eca3b0c12c00b95e8c5942897e79a4e7feb5 (patch)
tree863e10bb97e75b87b7b677283d5a66e7cb4367c8
parent3dd5628ad960353990ca2cca92b86570714bcb7c (diff)
downloadandroid_external_ebtables-64c0eca3b0c12c00b95e8c5942897e79a4e7feb5.tar.gz
android_external_ebtables-64c0eca3b0c12c00b95e8c5942897e79a4e7feb5.tar.bz2
android_external_ebtables-64c0eca3b0c12c00b95e8c5942897e79a4e7feb5.zip
rename the libebtc target to libebtc.so and remove the .PHONY for libebtc (thanks to Bertrand Jacquin)
-rw-r--r--userspace/ebtables2/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/userspace/ebtables2/Makefile b/userspace/ebtables2/Makefile
index a4cc7be..6c0a279 100644
--- a/userspace/ebtables2/Makefile
+++ b/userspace/ebtables2/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)