--- Makefile.orig 2015-08-12 01:51:43 UTC +++ Makefile @@ -20,11 +20,12 @@ clean: TARGETS clean-spac: clean AUTOFILES rm -f `cat AUTOFILES` -compile: conf-cc - ( echo '#!/bin/sh'; \ +compile: conf-cc conf-bgincs + ( bgincs=`head -n 1 conf-bgincs`; \ + echo '#!/bin/sh'; \ echo 'source=$$1; shift'; \ echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \ - echo exec `head -n 1 conf-cc` -I. '-o $${base}.o -c $$source $${1+"$$@"}'; \ + echo exec `head -n 1 conf-cc` -I. "-I'$${bgincs}'" "-I /usr/local/include/" '-o $${base}.o -c $$source $${1+"$$@"}'; \ ) >compile chmod 755 compile @@ -42,10 +43,11 @@ install: INSTHIER conf-bin conf-man libraries: ucspi-proxy.a -load: conf-ld - ( echo '#!/bin/sh';\ +load: conf-ld conf-bglibs + ( bglibs=`head -n 1 conf-bglibs`; \ + echo '#!/bin/sh';\ echo 'main="$$1"; shift';\ - echo exec `head -n 1 conf-ld` -L. '-o "$$main" "$$main.o" $${1+"$$@"}'; \ + echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" "-Wl,-R'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}'; \ ) >load chmod 755 load