2 # Copyright (c) 2014 Clerk Ma
\r
4 # You may freely use, modify and/or distribute this file.
\r
6 # makefile for Mac OS X (tested in 10.9).
\r
10 CFLAGS = -g -c -O2 -Wno-unused-result -Wno-dangling-else -I/Users/maqiyuan/dev/extra/include
\r
11 LDFLAGS = /Users/maqiyuan/dev/extra/lib/libkpathsea.a libdpx.a libpng.a libpaper.a libz.a -lm
\r
13 objects = yandytex.o itex.o openinou.o subroute.o local.o \
\r
14 tex0.o tex1.o tex2.o tex3.o tex4.o \
\r
15 tex5.o tex6.o tex7.o tex8.o tex9.o \
\r
16 pool.o utils.o dpx.o
\r
18 headers = yandytex.h texd.h coerce.h macros.h memory.h
\r
20 yandytex: $(objects)
\r
21 $(CC) -o yandytex $(objects) $(LDFLAGS)
\r
23 yandytex.o: yandytex.c $(headers)
\r
24 $(CC) $(CFLAGS) yandytex.c
\r
26 dpx.o: dpx.c $(headers)
\r
27 $(CC) $(CFLAGS) dpx.c
\r
29 itex.o: itex.c $(headers)
\r
30 $(CC) $(CFLAGS) itex.c
\r
32 openinou.o: openinou.c $(headers)
\r
33 $(CC) $(CFLAGS) openinou.c
\r
35 subroute.o: subroute.c $(headers)
\r
36 $(CC) $(CFLAGS) subroute.c
\r
38 local.o: local.c $(headers)
\r
39 $(CC) $(CFLAGS) local.c
\r
41 tex0.o: tex0.c $(headers)
\r
42 $(CC) $(CFLAGS) tex0.c
\r
44 tex1.o: tex1.c $(headers)
\r
45 $(CC) $(CFLAGS) tex1.c
\r
47 tex2.o: tex2.c $(headers)
\r
48 $(CC) $(CFLAGS) tex2.c
\r
50 tex3.o: tex3.c $(headers)
\r
51 $(CC) $(CFLAGS) tex3.c
\r
53 tex4.o: tex4.c $(headers)
\r
54 $(CC) $(CFLAGS) tex4.c
\r
56 tex5.o: tex5.c $(headers)
\r
57 $(CC) $(CFLAGS) tex5.c
\r
59 tex6.o: tex6.c $(headers)
\r
60 $(CC) $(CFLAGS) tex6.c
\r
62 tex7.o: tex7.c $(headers)
\r
63 $(CC) $(CFLAGS) tex7.c
\r
65 tex8.o: tex8.c $(headers)
\r
66 $(CC) $(CFLAGS) tex8.c
\r
68 tex9.o: tex9.c $(headers)
\r
69 $(CC) $(CFLAGS) tex9.c
\r
71 pool.o: pool.c $(headers)
\r
72 $(CC) $(CFLAGS) pool.c
\r
74 utils.o: utils.c $(headers)
\r
75 $(CC) $(CFLAGS) utils.c
\r