OSDN Git Service

removed a strcat bug (via want_version).
[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: gcc/clang).
7 #
8 # apt-get install libkpathsea6 libkpathsea-dev
9 # apt-get install zlib1g zlib1g-dev
10 #
11
12 CC = gcc
13 CFLAGS = -O2 -DMSDOS -DTeX -DINITEX -DINI -Ilibmd5
14 LDFLAGS = -lkpathsea -lz
15
16 objects = yandytex.o itex.o openinou.o subroute.o local.o \
17         tex0.o tex1.o tex2.o tex3.o tex4.o \
18         tex5.o tex6.o tex7.o tex8.o tex9.o \
19         yandy_pool.o md5.o yandy_inlines.o
20
21 headers = yandytex.h texd.h coerce.h texmf.h texmfmem.h
22
23 yandytex: $(objects)
24         $(CC) -o yandytex $(objects) $(LDFLAGS)
25
26 yandytex.o: yandytex.c $(headers)
27         $(CC) -c $(CFLAGS) yandytex.c
28  
29 itex.o: itex.c $(headers)
30         $(CC) -c $(CFLAGS) itex.c
31
32 openinou.o: openinou.c $(headers)
33         $(CC) -c $(CFLAGS) openinou.c
34
35 subroute.o: subroute.c $(headers)
36         $(CC) -c $(CFLAGS) subroute.c
37
38 local.o: local.c $(headers)
39         $(CC) -c $(CFLAGS) local.c
40
41 tex0.o: tex0.c $(headers)
42         $(CC) -c $(CFLAGS) tex0.c
43
44 tex1.o: tex1.c $(headers)
45         $(CC) -c $(CFLAGS) tex1.c
46
47 tex2.o: tex2.c $(headers)
48         $(CC) -c $(CFLAGS) tex2.c
49
50 tex3.o: tex3.c $(headers)
51         $(CC) -c $(CFLAGS) tex3.c
52
53 tex4.o: tex4.c $(headers)
54         $(CC) -c $(CFLAGS) tex4.c
55
56 tex5.o: tex5.c $(headers)
57         $(CC) -c $(CFLAGS) tex5.c
58
59 tex6.o: tex6.c $(headers)
60         $(CC) -c $(CFLAGS) tex6.c
61
62 tex7.o: tex7.c $(headers)
63         $(CC) -c $(CFLAGS) tex7.c
64
65 tex8.o: tex8.c $(headers)
66         $(CC) -c $(CFLAGS) tex8.c
67
68 tex9.o: tex9.c $(headers)
69         $(CC) -c $(CFLAGS) tex9.c
70
71 yandy_pool.o: yandy_pool.c $(headers)
72         $(CC) -c $(CFLAGS) yandy_pool.c
73
74 md5.o: libmd5/md5.c $(headers)
75         $(CC) -c $(CFLAGS) libmd5/md5.c
76
77 yandy_inlines.o: yandy_inlines.c $(headers)
78         $(CC) -c $(CFLAGS) yandy_inlines.c
79
80 .PHONY: clean
81
82 clean:
83         rm yandytex *.o