From 8d5e2b3a40a86d463d666cbf61906cf22febde34 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Tue, 19 Feb 2019 05:33:04 +0100 Subject: Remove common --- Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c3a87c5..9f93b0b 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,8 @@ include config.mk SRC = surf.c -CSRC = common.c WSRC = webext-surf.c OBJ = $(SRC:.c=.o) -COBJ = $(CSRC:.c=.o) WOBJ = $(WSRC:.c=.o) WLIB = $(WSRC:.c=.so) @@ -25,23 +23,21 @@ options: $(CC) $(SURFCFLAGS) $(CFLAGS) -c $< .o.so: - $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ \ - $< $(COBJ) $(WEBEXTLIBS) + $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $< $(WEBEXTLIBS) config.h: cp config.def.h $@ -$(OBJ) $(COBJ) $(WOBJ): config.h common.h config.mk -$(WLIB): $(COBJ) +$(OBJ) $(WOBJ): config.h common.h config.mk -surf: $(OBJ) $(COBJ) - $(CC) $(SURFLDFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(COBJ) $(LIBS) +surf: $(OBJ) + $(CC) $(SURFLDFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $(WOBJ): $(CC) $(WEBEXTCFLAGS) $(CFLAGS) -c $(@:.o=.c) clean: - rm -f surf $(OBJ) $(COBJ) + rm -f surf $(OBJ) rm -f $(WLIB) $(WOBJ) distclean: clean -- cgit v1.2.3