OSDN Git Service

code clean.
[putex/putex.git] / src / texsourc / Makefile.gcc
1 #
2 # Copyright (c) 2014 Clerk Ma
3 #
4 # You may freely use, modify and/or distribute this file.
5 #
6 # makefle for linux (tested in ubuntu 14.04).
7 #
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
12 #
13
14 CC = gcc
15 CFLAGS = -DMSDOS -DTeX -DINITEX -DINI -Ilibmd5 -Ilibavl/libavl
16 LDFLAGS = -lkpathsea -lhpdf -lpng -lz
17
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
23
24 headers = yandytex.h texd.h coerce.h texmf.h texmfmem.h
25
26 yandytex: $(objects)
27         $(CC) -o yandytex $(objects) $(LDFLAGS)
28
29 yandytex.o: yandytex.c $(headers)
30         $(CC) -c $(CFLAGS) yandytex.c
31  
32 itex.o: itex.c $(headers)
33         $(CC) -c $(CFLAGS) itex.c
34
35 openinou.o: openinou.c $(headers)
36         $(CC) -c $(CFLAGS) openinou.c
37
38 subroute.o: subroute.c $(headers)
39         $(CC) -c $(CFLAGS) subroute.c
40
41 local.o: local.c $(headers)
42         $(CC) -c $(CFLAGS) local.c
43
44 tex0.o: tex0.c $(headers)
45         $(CC) -c $(CFLAGS) tex0.c
46
47 tex1.o: tex1.c $(headers)
48         $(CC) -c $(CFLAGS) tex1.c
49
50 tex2.o: tex2.c $(headers)
51         $(CC) -c $(CFLAGS) tex2.c
52
53 tex3.o: tex3.c $(headers)
54         $(CC) -c $(CFLAGS) tex3.c
55
56 tex4.o: tex4.c $(headers)
57         $(CC) -c $(CFLAGS) tex4.c
58
59 tex5.o: tex5.c $(headers)
60         $(CC) -c $(CFLAGS) tex5.c
61
62 tex6.o: tex6.c $(headers)
63         $(CC) -c $(CFLAGS) tex6.c
64
65 tex7.o: tex7.c $(headers)
66         $(CC) -c $(CFLAGS) tex7.c
67
68 tex8.o: tex8.c $(headers)
69         $(CC) -c $(CFLAGS) tex8.c
70
71 tex9.o: tex9.c $(headers)
72         $(CC) -c $(CFLAGS) tex9.c
73
74 yandy_pool.o: yandy_pool.c $(headers)
75         $(CC) -c $(CFLAGS) yandy_pool.c
76
77 md5.o: libmd5/md5.c $(headers)
78         $(CC) -c $(CFLAGS) libmd5/md5.c
79
80 md5file.o: md5file.c $(headers)
81         $(CC) -c $(CFLAGS) md5file.c
82
83 yandy_pdf_backend.o: yandy_pdf_backend.c $(headers)
84         $(CC) -c $(CFLAGS) yandy_pdf_backend.c
85
86 avl.o: libavl/libavl/avl.c $(headers)
87         $(CC) -c $(CFLAGS) libavl/libavl/avl.c
88
89 .PHONY: clean
90
91 clean:
92         rm yandytex *.o