-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (32 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# ----- alias -----
linux : lin
win32 : win
windows : win
mac : osx
macosx : osx
# ----- static -----
static : objects
ar rcs libatropine.a *.o
# ----- linux -----
lin : libatropine.so
libatropine.so : objects
clang -shared *.o -o libatropine.so `objfw-config --libs` `pkg-config --libs gdk-3.0 pango`
# ----- windows -----
win : libatropine.dll
libatropine.dll : objects
clang -shared *.o -o libatropine.dll `objfw-config --libs` `pkg-config --libs gdk-3.0 pango`
# ----- os x -----
osx : libatropine.dylib
libatropine.dylib : objects
clang -dynamiclib *.o -o libatropine.dylib `objfw-config --libs` /STATIC-LIB-PATH/cairo/_bin/lib/*.a /STATIC-LIB-PATH/pango/1.6.0/modules/pango-basic-coretext.a -L/usr/X11/lib -lz -lfreetype -framework Cocoa -liconv -lffi
# ----- objects -----
objects : OMColor.o OMCoordinate.o OMRectangle.o OMFont.o OMFontNotFoundException.o OMTextLayout.o OMSurface.o OMBufferSurface.o OMNativeSurface.o
%.o : %.m
clang -c $^ -o $@ `objfw-config --cppflags --objcflags` `pkg-config --cflags gdk-3.0 pango` -fPIC
# ----- clean -----
clean :
rm -f *.o
rm -f *.a
rm -f *.so
rm -f *.dll
rm -f *.dylib