mirror of
https://git.code.sf.net/p/quake/game-source
synced 2024-11-24 21:02:06 +00:00
use pkg-config to work out where to install the header and lib
This commit is contained in:
parent
34dae66a63
commit
0909b381cf
1 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,8 @@ QFCC=qfcc
|
||||||
#QCFLAGS=-z -qq -g -Werror
|
#QCFLAGS=-z -qq -g -Werror
|
||||||
QCFLAGS=-qq -g -Werror
|
QCFLAGS=-qq -g -Werror
|
||||||
QCPPFLAGS=
|
QCPPFLAGS=
|
||||||
prefix=/usr/local
|
libdir=$(shell pkg-config qfcc --variable=libdir)
|
||||||
|
includedir=$(shell pkg-config qfcc --variable=includedir)
|
||||||
|
|
||||||
libfrikbot_source = \
|
libfrikbot_source = \
|
||||||
bot_ai.qc \
|
bot_ai.qc \
|
||||||
|
@ -46,7 +47,7 @@ clean:
|
||||||
rm -rf .deps
|
rm -rf .deps
|
||||||
|
|
||||||
install: libfrikbot.a
|
install: libfrikbot.a
|
||||||
cp frikbot.h $(DESTDIR)$(prefix)/include/QF/ruamoko
|
cp frikbot.h $(DESTDIR)$(includedir)
|
||||||
cp libfrikbot.a $(DESTDIR)$(prefix)/lib/ruamoko
|
cp libfrikbot.a $(DESTDIR)$(libdir)
|
||||||
|
|
||||||
-include $(libfrikbot_dep)
|
-include $(libfrikbot_dep)
|
||||||
|
|
Loading…
Reference in a new issue