Browse Source

Makefile.sharedlibrary: duk: use paths from INSTALL_PREFIX

This handles both the case where /usr/local is not on the paths by
default, and when the user installs duktape to a non-default
prefix.
pull/1923/head
Andrew Janke 7 years ago
parent
commit
25bad383c1
  1. 5
      dist-files/Makefile.sharedlibrary

5
dist-files/Makefile.sharedlibrary

@ -67,9 +67,6 @@ install: libduktape.so.$(REAL_VERSION) libduktaped.so.$(REAL_VERSION)
mkdir -p $(INSTALL_PREFIX)/include/
cp $(DUKTAPE_SRCDIR)/duktape.h $(DUKTAPE_SRCDIR)/duk_config.h $(INSTALL_PREFIX)/include/
# Note: assumes /usr/local/include/ and /usr/local/lib/ are in include/link
# path which may not be the case for all distributions.
#CCOPTS = -I/usr/local/include -L/usr/local/lib
CCOPTS = -I./examples/cmdline
duk:
$(CC) $(CCOPTS) -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
$(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm

Loading…
Cancel
Save