logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 2ad6f1fb221ad94b4bf2f3cdf4c1795f6b5466a4
parent: 809c1cdf80a701b3dd7fcca78ccaf211cac716c7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 23 Jul 2019 13:42:03 +0200

Makefile: Move LIBS & LDFLAGS to badwolf creation

Which fixes building with 'LDFLAGS=-Wl,-O1 -Wl,--as-needed'

Diffstat:

MMakefile8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -7,7 +7,7 @@ DATADIR = $(PREFIX)/share/badwolf PACKAGE = Badwolf DEPS = gtk+-3.0 webkit2gtk-4.0 -OBJS = keybindings.o +OBJS = keybindings.o badwolf.o EXE = badwolf TRANS = fr.mo @@ -28,14 +28,14 @@ ${TRANS}: po/${@:.mo=.po} mkdir -p locale/${@:.mo=}/LC_MESSAGES msgfmt -o locale/${@:.mo=}/LC_MESSAGES/$(PACKAGE).mo po/${@:.mo=.po} -${EXE}: $(OBJS) - $(CC) -std=c11 $(CFLAGS) $(CDEPS) $(LDFLAGS) $(LIBS) -o $@ $(OBJS) $@.c +badwolf: $(OBJS) + $(CC) -std=c11 -o $@ $(OBJS) $(LDFLAGS) $(LIBS) .c: $(CC) -std=c11 $(CFLAGS) $(CDEPS) $(LDFLAGS) $(LIBS) -o $@ $< .c.o: - $(CC) -std=c11 $(CFLAGS) $(CDEPS) $(LDFLAGS) $(LIBS) -c -o $@ $< + $(CC) -std=c11 $(CFLAGS) $(CDEPS) -c -o $@ $< install: all mkdir -p $(DESTDIR)$(BINDIR)