Make it possible to have implementations in different toolkits.

Also, make it possible to share the headers.
This commit is contained in:
Jonathan Schleifer 2011-12-27 23:38:07 +01:00
parent b5f40d159e
commit 73e7da5fb7
16 changed files with 3 additions and 3 deletions

21
gtk/Makefile Normal file
View file

@ -0,0 +1,21 @@
PREFIX ?= /usr/local
all:
@objfw-compile -Wall -g --lib 0.0 -o objgui -I../headers \
`pkg-config --cflags --libs gtk+-3.0` \
`ls *.m | fgrep -v test.m`
test:
@objfw-compile -Wall -g -o test -I../headers \
`pkg-config --cflags --libs gtk+-3.0` \
*.m
install:
mkdir -p ${PREFIX}/include/ObjGUI
cp ../headers/*.h ${PREFIX}/include/ObjGUI/
cp libobjgui.so ${PREFIX}/lib/libobjgui.so.0.0
ln -sf libobjgui.so.0.0 ${PREFIX}/lib/libobjgui.so.0
ln -sf libobjgui.so.0 ${PREFIX}/lib/libobjgui.so
clean:
rm -f test *.so *.o *~