use pkg-config to work out where to install the header and lib

This commit is contained in:
Bill Currie 2007-04-09 01:07:40 +00:00
parent 34dae66a63
commit 0909b381cf

View file

@ -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)