From 7dcce9e1b9dbd2be198c19abd36e71eba7d09063 Mon Sep 17 00:00:00 2001 From: Quentin Rameau Date: Sat, 7 Nov 2020 18:43:11 +0100 Subject: Makefile: use explicit targets Some make implementation have trouble with following inference rules indirection --- Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 9f93b0b..e5d4172 100644 --- a/Makefile +++ b/Makefile @@ -19,22 +19,22 @@ options: @echo "WEBEXTCFLAGS = $(WEBEXTCFLAGS) $(CFLAGS)" @echo "LDFLAGS = $(LDFLAGS)" -.c.o: - $(CC) $(SURFCFLAGS) $(CFLAGS) -c $< +surf: $(OBJ) + $(CC) $(SURFLDFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) -.o.so: - $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $< $(WEBEXTLIBS) +$(OBJ) $(WOBJ): config.h common.h config.mk config.h: cp config.def.h $@ -$(OBJ) $(WOBJ): config.h common.h config.mk +$(OBJ): $(SRC) + $(CC) $(SURFCFLAGS) $(CFLAGS) -c $(SRC) -surf: $(OBJ) - $(CC) $(SURFLDFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) +$(WLIB): $(WOBJ) + $(CC) -shared -Wl,-soname,$@ $(LDFLAGS) -o $@ $? $(WEBEXTLIBS) -$(WOBJ): - $(CC) $(WEBEXTCFLAGS) $(CFLAGS) -c $(@:.o=.c) +$(WOBJ): $(WSRC) + $(CC) $(WEBEXTCFLAGS) $(CFLAGS) -c $(WSRC) clean: rm -f surf $(OBJ) @@ -73,5 +73,4 @@ uninstall: done - rmdir $(DESTDIR)$(LIBDIR) -.SUFFIXES: .so .o .c .PHONY: all options distclean clean dist install uninstall -- cgit v1.2.3-59-g8ed1b f='/surf/commit/config.def.h?id=eb32dd6eca5b6224bb5fb28cadef5bd035581ef3&follow=1'>commitdiffstats
path: root/config.def.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-18My CMD was too short. :OGravatar Christoph Lohmann 1-1/+1
Thanks Carlos Torres for mentioning this.
2015-01-17Add the manpage changes for the disk cache support.Gravatar Christoph Lohmann 1-1/+7
2015-01-17Adding disk cache support for soup.Gravatar Christoph Lohmann 2-9/+40
This is a merge of the patch of Ben Woolley <tautolog@gmail.com>
2015-01-17Fix extra newline, and add -g where other switches are forwarded.Gravatar Ben Woolley 1-1/+3
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2015-01-17Newer libc want _DEFAULT_SOURCE.Gravatar Christoph Lohmann 1-1/+1
2015-01-17Major styles update.Gravatar Christoph Lohmann 3-11/+84
In config.h there is now some styles array to apply site-specific styles. This can be toggled using the -mM flags. If a stylefile is manually specified, then this will overwrite everything.
2015-01-02Fix a typo in surf manual.Gravatar Jakukyo Friel 1-1/+1
`Ctrl-/` displays incorrectly in `man surf` on my machine. A patch is attached. (You also access it here: https://github.com/weakish/surf/commit/07e97eccedd96eabf14b2fbf77de75ec1b594d97) ---- surf.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Signed-off-by: Christoph Lohmann <20h@r-36.net>
2014-09-28Minor style change.Gravatar Christoph Lohmann 1-1/+1
2014-09-28Make »Copy image address« work.Gravatar Christoph Lohmann 1-3/+10
Thanks yui@blekksprut.net for the patch!
2014-08-07Mention xdotool in SEE ALSO too.Gravatar Christoph Lohmann 1-1/+2
2014-08-07Fix the manpage about xid.Gravatar Christoph Lohmann 1-1/+3
Something was missing from this one sentence. Now it is complete.