# # Copyright (c) 2014 Clerk Ma # # You may freely use, modify and/or distribute this file. # # makefile for Mac OS X (tested in 10.9). # CC = clang CFLAGS = -g -c -O2 -Wno-unused-result -Wno-dangling-else -I/Users/maqiyuan/dev/extra/include LDFLAGS = /Users/maqiyuan/dev/extra/lib/libkpathsea.a libdpx.a libpng.a libpaper.a libz.a -lm 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 \ pool.o utils.o dpx.o headers = yandytex.h texd.h coerce.h macros.h memory.h yandytex: $(objects) $(CC) -o yandytex $(objects) $(LDFLAGS) yandytex.o: yandytex.c $(headers) $(CC) $(CFLAGS) yandytex.c dpx.o: dpx.c $(headers) $(CC) $(CFLAGS) dpx.c itex.o: itex.c $(headers) $(CC) $(CFLAGS) itex.c openinou.o: openinou.c $(headers) $(CC) $(CFLAGS) openinou.c subroute.o: subroute.c $(headers) $(CC) $(CFLAGS) subroute.c local.o: local.c $(headers) $(CC) $(CFLAGS) local.c tex0.o: tex0.c $(headers) $(CC) $(CFLAGS) tex0.c tex1.o: tex1.c $(headers) $(CC) $(CFLAGS) tex1.c tex2.o: tex2.c $(headers) $(CC) $(CFLAGS) tex2.c tex3.o: tex3.c $(headers) $(CC) $(CFLAGS) tex3.c tex4.o: tex4.c $(headers) $(CC) $(CFLAGS) tex4.c tex5.o: tex5.c $(headers) $(CC) $(CFLAGS) tex5.c tex6.o: tex6.c $(headers) $(CC) $(CFLAGS) tex6.c tex7.o: tex7.c $(headers) $(CC) $(CFLAGS) tex7.c tex8.o: tex8.c $(headers) $(CC) $(CFLAGS) tex8.c tex9.o: tex9.c $(headers) $(CC) $(CFLAGS) tex9.c pool.o: pool.c $(headers) $(CC) $(CFLAGS) pool.c utils.o: utils.c $(headers) $(CC) $(CFLAGS) utils.c .PHONY: clean clean: rm yandytex *.o