2 # Copyright (c) 2014 Clerk Ma
\r
4 # You may freely use, modify and/or distribute this file.
\r
6 # makefle for linux (tested in ubuntu 14.04: gcc 4.8).
\r
7 # linked libkpathsea.a and libz.a
\r
11 CFLAGS = -g -c -O2 -Wno-unused-result
\r
12 LDFLAGS = /home/clerk/dev/android/lib/libkpathsea.a libdpx.a libpng.a libpaper.a /home/clerk/dev/android/lib/libz.a /home/clerk/dev/android/lib/libkpathsea.a -lm
\r
14 objects = yandytex.o itex.o openinou.o subroute.o local.o \
\r
15 tex0.o tex1.o tex2.o tex3.o tex4.o \
\r
16 tex5.o tex6.o tex7.o tex8.o tex9.o \
\r
17 pool.o utils.o dpx.o
\r
19 headers = yandytex.h texd.h coerce.h macros.h memory.h
\r
21 yandytex: $(objects)
\r
22 $(CC) -o yandytex $(objects) $(LDFLAGS)
\r
24 yandytex.o: yandytex.c $(headers)
\r
25 $(CC) $(CFLAGS) yandytex.c
\r
27 dpx.o: dpx.c $(headers)
\r
28 $(CC) $(CFLAGS) dpx.c
\r
30 itex.o: itex.c $(headers)
\r
31 $(CC) $(CFLAGS) itex.c
\r
33 openinou.o: openinou.c $(headers)
\r
34 $(CC) $(CFLAGS) openinou.c
\r
36 subroute.o: subroute.c $(headers)
\r
37 $(CC) $(CFLAGS) subroute.c
\r
39 local.o: local.c $(headers)
\r
40 $(CC) $(CFLAGS) local.c
\r
42 tex0.o: tex0.c $(headers)
\r
43 $(CC) $(CFLAGS) tex0.c
\r
45 tex1.o: tex1.c $(headers)
\r
46 $(CC) $(CFLAGS) tex1.c
\r
48 tex2.o: tex2.c $(headers)
\r
49 $(CC) $(CFLAGS) tex2.c
\r
51 tex3.o: tex3.c $(headers)
\r
52 $(CC) $(CFLAGS) tex3.c
\r
54 tex4.o: tex4.c $(headers)
\r
55 $(CC) $(CFLAGS) tex4.c
\r
57 tex5.o: tex5.c $(headers)
\r
58 $(CC) $(CFLAGS) tex5.c
\r
60 tex6.o: tex6.c $(headers)
\r
61 $(CC) $(CFLAGS) tex6.c
\r
63 tex7.o: tex7.c $(headers)
\r
64 $(CC) $(CFLAGS) tex7.c
\r
66 tex8.o: tex8.c $(headers)
\r
67 $(CC) $(CFLAGS) tex8.c
\r
69 tex9.o: tex9.c $(headers)
\r
70 $(CC) $(CFLAGS) tex9.c
\r
72 pool.o: pool.c $(headers)
\r
73 $(CC) $(CFLAGS) pool.c
\r
75 utils.o: utils.c $(headers)
\r
76 $(CC) $(CFLAGS) utils.c
\r