40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.4 2019/02/09 17:55:27 abieber Exp $
|
|
Index: Makefile
|
|
--- Makefile.orig
|
|
+++ Makefile
|
|
@@ -56,21 +56,21 @@ buildopts.h: buildopts.h.in
|
|
$(filter-out $(EXT_OBJS),$(OBJS)) $(EXT_OBJS): $(HEADS) config.mk
|
|
|
|
$(filter-out $(EXT_OBJS),$(OBJS)) : %.o : %.c
|
|
- @echo $(CC) -c $< -o $@
|
|
+ @echo $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
|
|
@$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
|
|
|
|
$(EXT_OBJS) : %.o : %.c
|
|
- @echo $(CC) -c $< -o $@
|
|
+ @echo $(CC) -c $(CFLAGS) -DLUAKIT_WEB_EXTENSION -fpic $(CPPFLAGS) $< -o $@
|
|
@$(CC) -c $(CFLAGS) -DLUAKIT_WEB_EXTENSION -fpic $(CPPFLAGS) $< -o $@
|
|
|
|
widgets/webview.o: $(wildcard widgets/webview/*.c)
|
|
|
|
luakit: $(OBJS)
|
|
- @echo $(CC) -o $@ $(OBJS)
|
|
+ @echo $(CC) -o $@ $(OBJS) $(LDFLAGS)
|
|
@$(CC) -o $@ $(OBJS) $(LDFLAGS)
|
|
|
|
luakit.so: $(EXT_OBJS)
|
|
- @echo $(CC) -o $@ $(EXT_OBJS)
|
|
+ @echo $(CC) -o $@ $(EXT_OBJS) -shared $(LDFLAGS)
|
|
@$(CC) -o $@ $(EXT_OBJS) -shared $(LDFLAGS)
|
|
|
|
luakit.1: luakit.1.in
|
|
@@ -115,7 +115,7 @@ install: all
|
|
install -d $(DESTDIR)$(APPDIR)
|
|
install -m644 extras/luakit.desktop $(DESTDIR)$(APPDIR)
|
|
install -d $(DESTDIR)$(MANPREFIX)/man1/
|
|
- install -m644 luakit.1.gz $(DESTDIR)$(MANPREFIX)/man1/
|
|
+ install -m644 luakit.1 $(DESTDIR)$(MANPREFIX)/man1/
|
|
mkdir -p resources
|
|
find resources -type d -exec install -d $(DESTDIR)$(PREFIX)/share/luakit/'{}' \;
|
|
find resources -type f -exec sh -c 'f="{}"; install -m644 "$$f" "$(DESTDIR)$(PREFIX)/share/luakit/$$(dirname $$f)"' \;
|