added gmon.out to clean target
[swftools.git] / pdf2swf / ttf2pt1 / Makefile.in
index 2ac46c8..430d2ec 100644 (file)
@@ -1,9 +1,34 @@
-all:
-       gcc -c ft.c
-       gcc -c ttf.c
-       gcc -c pt1.c
-       gcc -c ttf2pt1.c
-       gcc -c t1asm.c
-       ar cru ttf2pt1.a ft.o ttf.o pt1.o ttf2pt1.o t1asm.o
+top_builddir = ../..
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+include ../../Makefile.common
+
+all: libpdf.a
+
+ttf2pt1_objects =  ft.o ttf.o pt1.o ttf2pt1.o t1asm.o bdf.o bitmap.o
+
+ft.o: ft.c
+       $(C) -I./ -Wno-parentheses ft.c -o $@
+ttf.o: ttf.c
+       $(C) -I./ -Wno-parentheses ttf.c -o $@
+pt1.o: pt1.c
+       $(C) -I./ -Wno-parentheses pt1.c -o $@
+ttf2pt1.o: ttf2pt1.c
+       $(C) -I./ -Wno-parentheses ttf2pt1.c -o $@
+t1asm.o: t1asm.c
+       $(C) -I./ -Wno-parentheses t1asm.c -o $@
+bitmap.o: bitmap.c
+       $(C) -I./ -Wno-parentheses bitmap.c -o $@
+bdf.o: bdf.c
+       $(C) -I./ -Wno-parentheses bdf.c -o $@
+
+libpdf.a: $(ttf2pt1_objects)
+       $(AR) r ttf2pt1.a $(ttf2pt1_objects)
+       $(RANLIB) ttf2pt1.a
+
 install:
+uninstall:
+
+clean: 
+       rm -f *.o *.lo *.a *.la gmon.out