kopia lustrzana https://github.com/FreeSpacenav/spnavcfg
- removed init script installation from spacenavd's install target, added
message to the user instead. Applied Hans Meine's patches: - allow build dir != source dir - install into /lib64 if /lib64 exists (modified that one to use uname -m in the configure script, debian seems to have a lib64 even on 32bit systems) - display X11 connection closing in verbose mode, too (not only init) git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spnavcfg@47 ef983eb1-d774-4af8-acfd-baaf7b16a646pull/1/head
rodzic
e013670436
commit
6e360817d4
|
@ -11,6 +11,9 @@ LDFLAGS = `pkg-config --libs gtk+-2.0`
|
|||
$(bin): $(obj)
|
||||
$(CC) -o $@ $(obj) $(LDFLAGS)
|
||||
|
||||
%.o: $(srcdir)/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(obj) $(bin)
|
||||
|
|
|
@ -7,6 +7,8 @@ OPT=yes
|
|||
DBG=yes
|
||||
X11=yes
|
||||
|
||||
srcdir="`dirname "$0"`"
|
||||
|
||||
for arg; do
|
||||
case "$arg" in
|
||||
--prefix=*)
|
||||
|
@ -43,9 +45,10 @@ echo " optimize for speed: $OPT"
|
|||
echo " include debugging symbols: $DBG"
|
||||
echo
|
||||
|
||||
# create makefile
|
||||
echo 'creating makefile ...'
|
||||
# create Makefile
|
||||
echo 'creating Makefile ...'
|
||||
echo "PREFIX = $PREFIX" >Makefile
|
||||
echo "srcdir = $srcdir" >>Makefile
|
||||
|
||||
if [ "$DBG" = 'yes' ]; then
|
||||
echo 'dbg = -g' >>Makefile
|
||||
|
@ -55,7 +58,7 @@ if [ "$OPT" = 'yes' ]; then
|
|||
echo 'opt = -O3' >>Makefile
|
||||
fi
|
||||
|
||||
cat Makefile.in >>Makefile
|
||||
cat "$srcdir/Makefile.in" >>Makefile
|
||||
|
||||
echo ''
|
||||
echo 'Done. You can now type make (or gmake) to compile spnavcfg.'
|
||||
|
|
Ładowanie…
Reference in New Issue