summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2019-02-09 15:39:01 +0100
committerKarel Kočí <cynerd@email.cz>2019-02-09 15:39:01 +0100
commit5105baa9342399c74dd5feb5697efcf041f8c80c (patch)
tree8052c578e1cb87818cbb5d91b16e43dc15ca01d0 /Makefile
parentefc49f30352636d72095703058bf4983f012235f (diff)
parentd068a3878b6b9f2841a49cd7948cdf9d62b55585 (diff)
downloadsurf-5105baa9342399c74dd5feb5697efcf041f8c80c.tar.gz
surf-5105baa9342399c74dd5feb5697efcf041f8c80c.tar.bz2
surf-5105baa9342399c74dd5feb5697efcf041f8c80c.zip
Merge branch 'surf-webkit2' into mysurfv2.0.8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 09b4a81..f5a1dfb 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,11 @@
include config.mk
-SRC = surf.c common.c
-OBJ = $(SRC:.c=.o)
+SRC = surf.c
+CSRC = common.c
WEBEXTSRC = libsurf-webext.c
+OBJ = $(SRC:.c=.o)
+COBJ = $(CSRC:.c=.o)
WEBEXTOBJ = $(WEBEXTSRC:.c=.o)
all: options libsurf-webext.so surf
@@ -25,18 +27,21 @@ config.h:
cp config.def.h $@
$(OBJ): config.h common.h config.mk
+$(COBJ): config.h common.h config.mk
+$(WEBEXTOBJ): config.h common.h config.mk
-$(WEBEXTOBJ): $(WEBEXTSRC) config.h common.h config.mk
+$(WEBEXTOBJ): $(WEBEXTSRC)
$(CC) $(WEBEXTCFLAGS) $(CFLAGS) -c $(WEBEXTSRC)
-libsurf-webext.so: $(WEBEXTOBJ)
- $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $< $(WEBEXTLIBS) -lc
+libsurf-webext.so: $(WEBEXTOBJ) $(COBJ)
+ $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ \
+ $(WEBEXTOBJ) $(COBJ) $(WEBEXTLIBS)
-surf: $(OBJ)
- $(CC) $(SURFLDLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
+surf: $(OBJ) $(COBJ)
+ $(CC) $(SURFLDFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(COBJ) $(LIBS)
clean:
- rm -f surf $(OBJ)
+ rm -f surf $(OBJ) $(COBJ)
rm -f libsurf-webext.so $(WEBEXTOBJ)
distclean: clean