kopia lustrzana https://github.com/FreeSpacenav/spnavcfg
configure: pass CFLAGS and LDFLAGS as add_cflags and add_ldflags to the
makefile. Closes github issue #5.pull/11/head
rodzic
cf04171cad
commit
c9aa215c24
|
@ -7,8 +7,9 @@ warn = -Wall
|
|||
CC = gcc
|
||||
SED = sed
|
||||
INSTALL = install
|
||||
CFLAGS = -pedantic $(warn) $(dbg) $(opt) `pkg-config --cflags gtk+-2.0 gmodule-export-2.0`
|
||||
LDFLAGS = `pkg-config --libs gtk+-2.0 gmodule-export-2.0` -lX11
|
||||
CFLAGS = -pedantic $(warn) $(dbg) $(opt) `pkg-config --cflags gtk+-2.0 gmodule-export-2.0` \
|
||||
$(add_cflags)
|
||||
LDFLAGS = `pkg-config --libs gtk+-2.0 gmodule-export-2.0` -lX11 $(add_ldflags)
|
||||
|
||||
$(bin): $(obj)
|
||||
$(CC) -o $@ $(obj) $(LDFLAGS)
|
||||
|
|
|
@ -58,6 +58,13 @@ if [ "$OPT" = 'yes' ]; then
|
|||
echo 'opt = -O3' >>Makefile
|
||||
fi
|
||||
|
||||
if [ -n "$CFLAGS" ]; then
|
||||
echo "add_cflags = $CFLAGS" >>Makefile
|
||||
fi
|
||||
if [ -n "$LDFLAGS" ]; then
|
||||
echo "add_ldflags = $LDFLAGS" >>Makefile
|
||||
fi
|
||||
|
||||
cat "$srcdir/Makefile.in" >>Makefile
|
||||
|
||||
echo ''
|
||||
|
|
Ładowanie…
Reference in New Issue