From cc17a4173a9ca3a53ea4645c79453e9958c88534 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 19 Jun 2011 11:35:21 +0000 Subject: rename the libebtc target to libebtc.so and remove the .PHONY for libebtc (thanks to Bertrand Jacquin) --- Makefile | 9 ++++----- 1 file 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) -- cgit v1.2.3