diff options
author | Quentin Rameau <quinq@fifth.space> | 2019-02-19 05:33:04 +0100 |
---|---|---|
committer | Quentin Rameau <quinq@fifth.space> | 2020-11-01 16:59:11 +0100 |
commit | 8d5e2b3a40a86d463d666cbf61906cf22febde34 (patch) | |
tree | c2edf2220d3c05f5979281fced8a9726bd4f4a28 /Makefile | |
parent | 21fcbc004e16a9de46424fb21ad9c32270779a0d (diff) |
Remove common
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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 |