X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=Makefile;h=0385a50d275e4908bb0e6ec993765b3aa54f6e2b;hp=9aace4f74087cad549d62aa74682496532c8af82;hb=1901359efa10fe2e18794df34fc33b81da03a6f5;hpb=7ea0c2f7f8c5cc4616d8dc0676f7b4b59351667b 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 $@