X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=Makefile;h=0385a50d275e4908bb0e6ec993765b3aa54f6e2b;hp=e1e7e1f33e8f6abe7cd4b017ccbce64bf06347f8;hb=660413256f4c1cc916e6f96b9156a4f5a85dfcc4;hpb=1bd6d201020f67160872c28534edff532b5198b9 diff --git a/Makefile b/Makefile index e1e7e1f..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 @@ -29,7 +29,7 @@ options: @$(LIBTOOL) --mode compile --tag CC $(CC) $(LIBCFLAGS) -c $< $(OBJ): config.h config.mk -$(LIBOBJ): config.mk +$(LIBOBJ): config.h config.mk config.h: @echo creating $@ from config.def.h @@ -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 $@