summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2016-01-04 16:09:12 +0100
committerQuentin Rameau <quinq@fifth.space>2018-10-08 11:38:03 +0200
commit1901359efa10fe2e18794df34fc33b81da03a6f5 (patch)
tree5f0267eb93763156d9b4348db7b62056bb064c12 /Makefile
parent7ea0c2f7f8c5cc4616d8dc0676f7b4b59351667b (diff)
downloadsurf-1901359efa10fe2e18794df34fc33b81da03a6f5.tar.gz
surf-1901359efa10fe2e18794df34fc33b81da03a6f5.tar.bz2
surf-1901359efa10fe2e18794df34fc33b81da03a6f5.zip
Add a file for shared functions
New common.[hc] files where shared functions between surf and webkitextension will be put. First addition is die().
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9aace4f..0385a50 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,9 @@
include config.mk
-SRC = surf.c
+SRC = surf.c common.c
OBJ = $(SRC:.c=.o)
-LIBSRC = libsurf-webext.c
+LIBSRC = libsurf-webext.c common.c
LIBOBJ = $(LIBSRC:.c=.lo)
all: options libsurf-webext.la surf
@@ -38,7 +38,7 @@ config.h:
libsurf-webext.la: $(LIBOBJ)
@echo libtool link $@
@$(LIBTOOL) --mode link --tag CC $(CC) $(LIBLDFLAGS) -o $@ \
- $(LIBOBJ) -rpath $(DESTDIR)$(LIBPREFIX)
+ $(LIBOBJ) $(LIB) -rpath $(DESTDIR)$(LIBPREFIX)
surf: $(OBJ)
@echo CC -o $@