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).
8 # apt-get install libkpathsea6 libkpathsea-dev
9 # apt-get install libhpdf-2.2.1 libhpdf-dev
10 # apt-get install libpng12-0 libpng12-dev
11 # apt-get install zlib1g zlib1g-dev
15 CFLAGS = -DMSDOS -DTeX -DINITEX -DINI -Ilibmd5 -Ilibavl/libavl
16 LDFLAGS = -lkpathsea -lhpdf -lpng -lz
18 objects = yandytex.o itex.o openinou.o subroute.o local.o \
19 tex0.o tex1.o tex2.o tex3.o tex4.o \
20 tex5.o tex6.o tex7.o tex8.o tex9.o \
21 yandy_pool.o md5.o md5file.o \
22 yandy_pdf_backend.o avl.o
24 headers = yandytex.h texd.h coerce.h texmf.h texmfmem.h
27 $(CC) -o yandytex $(objects) $(LDFLAGS)
29 yandytex.o: yandytex.c $(headers)
30 $(CC) -c $(CFLAGS) yandytex.c
32 itex.o: itex.c $(headers)
33 $(CC) -c $(CFLAGS) itex.c
35 openinou.o: openinou.c $(headers)
36 $(CC) -c $(CFLAGS) openinou.c
38 subroute.o: subroute.c $(headers)
39 $(CC) -c $(CFLAGS) subroute.c
41 local.o: local.c $(headers)
42 $(CC) -c $(CFLAGS) local.c
44 tex0.o: tex0.c $(headers)
45 $(CC) -c $(CFLAGS) tex0.c
47 tex1.o: tex1.c $(headers)
48 $(CC) -c $(CFLAGS) tex1.c
50 tex2.o: tex2.c $(headers)
51 $(CC) -c $(CFLAGS) tex2.c
53 tex3.o: tex3.c $(headers)
54 $(CC) -c $(CFLAGS) tex3.c
56 tex4.o: tex4.c $(headers)
57 $(CC) -c $(CFLAGS) tex4.c
59 tex5.o: tex5.c $(headers)
60 $(CC) -c $(CFLAGS) tex5.c
62 tex6.o: tex6.c $(headers)
63 $(CC) -c $(CFLAGS) tex6.c
65 tex7.o: tex7.c $(headers)
66 $(CC) -c $(CFLAGS) tex7.c
68 tex8.o: tex8.c $(headers)
69 $(CC) -c $(CFLAGS) tex8.c
71 tex9.o: tex9.c $(headers)
72 $(CC) -c $(CFLAGS) tex9.c
74 yandy_pool.o: yandy_pool.c $(headers)
75 $(CC) -c $(CFLAGS) yandy_pool.c
77 md5.o: libmd5/md5.c $(headers)
78 $(CC) -c $(CFLAGS) libmd5/md5.c
80 md5file.o: md5file.c $(headers)
81 $(CC) -c $(CFLAGS) md5file.c
83 yandy_pdf_backend.o: yandy_pdf_backend.c $(headers)
84 $(CC) -c $(CFLAGS) yandy_pdf_backend.c
86 avl.o: libavl/libavl/avl.c $(headers)
87 $(CC) -c $(CFLAGS) libavl/libavl/avl.c