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