-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 800 Bytes
/
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
Y= freetype
S=-DSTANDALONE
CC= cc
CFLAGS= -O2 -std=c99 -pedantic -Wall -Wextra -I $Y/include $S
LIBS= $Y/objs/.libs/libfreetype.a -lz -lbz2
P= fd
L= ps.lua
O= out
G= g
F= /System/Library/Fonts/NewYorkItalic.ttf
F= /System/Library/Fonts/NewYork.ttf
F= /System/Library/Fonts/Supplemental/Times New Roman Italic.ttf
F= /System/Library/Fonts/Supplemental/Times New Roman.ttf
F= /System/Library/Fonts/Times.ttc
all: run pdf
test:
$(CC) $(CFLAGS) main.c $(LIBS)
./a.out '$G' '$F'
r: $P
./$P $L '$G' '$F'
run: $P
./$P $L '$G' '$F' > $O.eps
pdf:
epstopdf $O.eps
open $O.pdf
$P: $P.c outline.c outline.h
$(CC) $(CFLAGS) -o $P $P.c -llua $(LIBS)
clean:
-rm -f $P $P.o $O.txt $O.ps $O.eps $O.pdf a.out *.o *.so
so:
$(CC) $(CFLAGS) -o outline.so -bundle -undefined dynamic_lookup $P.c $(LIBS)