OSDN Git Service

version 2.3.0-final.
[putex/putex.git] / src / texsourc / Makefile.linux.gcc
index 62ec621..e867526 100644 (file)
@@ -1,83 +1,81 @@
-#
-# Copyright (c) 2014 Clerk Ma
-#
-# You may freely use, modify and/or distribute this file.
-#
-# makefle for linux (tested in ubuntu 14.04: gcc 4.8).
-#
-# apt-get install libkpathsea6 libkpathsea-dev
-# apt-get install zlib1g zlib1g-dev
-#
-
-CC = gcc
-CFLAGS = -O2 -DMSDOS -DTeX -DINITEX -DINI -Ilibmd5
-LDFLAGS = -lkpathsea -lz
-
-objects = yandytex.o itex.o openinou.o subroute.o local.o \
-       tex0.o tex1.o tex2.o tex3.o tex4.o \
-       tex5.o tex6.o tex7.o tex8.o tex9.o \
-       yandy_pool.o md5.o yandy_inlines.o
-
-headers = yandytex.h texd.h coerce.h texmf.h texmfmem.h
-
-yandytex: $(objects)
-       $(CC) -o yandytex $(objects) $(LDFLAGS)
-
-yandytex.o: yandytex.c $(headers)
-       $(CC) -c $(CFLAGS) yandytex.c
-itex.o: itex.c $(headers)
-       $(CC) -c $(CFLAGS) itex.c
-
-openinou.o: openinou.c $(headers)
-       $(CC) -c $(CFLAGS) openinou.c
-
-subroute.o: subroute.c $(headers)
-       $(CC) -c $(CFLAGS) subroute.c
-
-local.o: local.c $(headers)
-       $(CC) -c $(CFLAGS) local.c
-
-tex0.o: tex0.c $(headers)
-       $(CC) -c $(CFLAGS) tex0.c
-
-tex1.o: tex1.c $(headers)
-       $(CC) -c $(CFLAGS) tex1.c
-
-tex2.o: tex2.c $(headers)
-       $(CC) -c $(CFLAGS) tex2.c
-
-tex3.o: tex3.c $(headers)
-       $(CC) -c $(CFLAGS) tex3.c
-
-tex4.o: tex4.c $(headers)
-       $(CC) -c $(CFLAGS) tex4.c
-
-tex5.o: tex5.c $(headers)
-       $(CC) -c $(CFLAGS) tex5.c
-
-tex6.o: tex6.c $(headers)
-       $(CC) -c $(CFLAGS) tex6.c
-
-tex7.o: tex7.c $(headers)
-       $(CC) -c $(CFLAGS) tex7.c
-
-tex8.o: tex8.c $(headers)
-       $(CC) -c $(CFLAGS) tex8.c
-
-tex9.o: tex9.c $(headers)
-       $(CC) -c $(CFLAGS) tex9.c
-
-yandy_pool.o: yandy_pool.c $(headers)
-       $(CC) -c $(CFLAGS) yandy_pool.c
-
-md5.o: libmd5/md5.c $(headers)
-       $(CC) -c $(CFLAGS) libmd5/md5.c
-
-yandy_inlines.o: yandy_inlines.c $(headers)
-       $(CC) -c $(CFLAGS) yandy_inlines.c
-
-.PHONY: clean
-
-clean:
-       rm yandytex *.o
+#\r
+# Copyright (c) 2014 Clerk Ma\r
+#\r
+# You may freely use, modify and/or distribute this file.\r
+#\r
+# makefle for linux (tested in ubuntu 14.04: gcc 4.8).\r
+# linked libkpathsea.a and libz.a\r
+#\r
+\r
+CC = gcc\r
+CFLAGS = -g -c -O2\r
+LDFLAGS = libdpx.a libpng.a libz.a /home/clerk/dev/extra/lib/libkpathsea.a -lm\r
+\r
+objects = yandytex.o itex.o openinou.o subroute.o local.o \\r
+       tex0.o tex1.o tex2.o tex3.o tex4.o \\r
+       tex5.o tex6.o tex7.o tex8.o tex9.o \\r
+       pool.o utils.o dpx.o\r
+\r
+headers = yandytex.h texd.h coerce.h macros.h memory.h\r
+\r
+yandytex: $(objects)\r
+       $(CC) -o yandytex $(objects) $(LDFLAGS)\r
+\r
+yandytex.o: yandytex.c $(headers)\r
+       $(CC) $(CFLAGS) yandytex.c\r
+\r
+dpx.o: dpx.c $(headers)\r
+       $(CC) $(CFLAGS) dpx.c\r
+\r
+itex.o: itex.c $(headers)\r
+       $(CC) $(CFLAGS) itex.c\r
+\r
+openinou.o: openinou.c $(headers)\r
+       $(CC) $(CFLAGS) openinou.c\r
+\r
+subroute.o: subroute.c $(headers)\r
+       $(CC) $(CFLAGS) subroute.c\r
+\r
+local.o: local.c $(headers)\r
+       $(CC) $(CFLAGS) local.c\r
+\r
+tex0.o: tex0.c $(headers)\r
+       $(CC) $(CFLAGS) tex0.c\r
+\r
+tex1.o: tex1.c $(headers)\r
+       $(CC) $(CFLAGS) tex1.c\r
+\r
+tex2.o: tex2.c $(headers)\r
+       $(CC) $(CFLAGS) tex2.c\r
+\r
+tex3.o: tex3.c $(headers)\r
+       $(CC) $(CFLAGS) tex3.c\r
+\r
+tex4.o: tex4.c $(headers)\r
+       $(CC) $(CFLAGS) tex4.c\r
+\r
+tex5.o: tex5.c $(headers)\r
+       $(CC) $(CFLAGS) tex5.c\r
+\r
+tex6.o: tex6.c $(headers)\r
+       $(CC) $(CFLAGS) tex6.c\r
+\r
+tex7.o: tex7.c $(headers)\r
+       $(CC) $(CFLAGS) tex7.c\r
+\r
+tex8.o: tex8.c $(headers)\r
+       $(CC) $(CFLAGS) tex8.c\r
+\r
+tex9.o: tex9.c $(headers)\r
+       $(CC) $(CFLAGS) tex9.c\r
+\r
+pool.o: pool.c $(headers)\r
+       $(CC) $(CFLAGS) pool.c\r
+\r
+utils.o: utils.c $(headers)\r
+       $(CC) $(CFLAGS) utils.c\r
+\r
+.PHONY: clean\r
+\r
+clean:\r
+       rm yandytex *.o\r