X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxpoly%2FMakefile;h=36b6b2e476629251e167d1712618fd148707fae7;hb=e0a27e1bd83ff2d60745dd6030e0f5ef7ef97b82;hp=8469965d669cc04577275320b76956c6cf12a1f6;hpb=64cbdc0d10e611af20d4d375ff6319793da8e6f5;p=swftools.git diff --git a/lib/gfxpoly/Makefile b/lib/gfxpoly/Makefile index 8469965..36b6b2e 100644 --- a/lib/gfxpoly/Makefile +++ b/lib/gfxpoly/Makefile @@ -1,6 +1,8 @@ -all: testheap test +all: test stroke +include ../../Makefile.common -CC = gcc -g -O2 +CC = gcc -O3 -fomit-frame-pointer +#CC = gcc -O3 ../libbase.a: ../q.c ../q.h ../mem.c ../mem.h cd ..; make libbase.a @@ -19,7 +21,7 @@ active.o: active.c active.h poly.h convert.o: convert.c convert.h poly.h $(CC) -c convert.c -o convert.o -poly.o: poly.c poly.h active.h ../q.h +poly.o: poly.c poly.h active.h heap.h ../q.h $(CC) -c poly.c -o poly.o wind.o: wind.c wind.h poly.h @@ -31,9 +33,15 @@ renderpoly.o: renderpoly.c wind.h poly.h renderpoly.h xrow.o: xrow.c xrow.h ../q.h ../mem.h $(CC) -c xrow.c -o xrow.o -SWF = ../librfxswf.a ../libpdf.a ../libgfx.a -lstdc++ -lfontconfig +stroke.o: stroke.c poly.h convert.h wind.h + $(CC) -c stroke.c -o stroke.o + +stroke: test_stroke.c stroke.o $(OBJS) ../libgfx.a ../libbase.a ../librfxswf.a ../libgfxswf.a + $(CC) test_stroke.c stroke.o $(OBJS) ../libgfx.a ../libbase.a ../librfxswf.a ../libgfxswf.a -o stroke $(LIBS) + +SWF = ../librfxswf.a ../libpdf.a ../libgfx.a -lstdc++ test: ../libbase.a ../libgfx.a test.c $(OBJS) poly.h convert.h - $(CC) test.c $(OBJS) $(SWF) ../libbase.a ../libgfx.a -o test -lm -lz -ljpeg -lfreetype + $(CC) test.c $(OBJS) $(SWF) ../libbase.a ../libgfx.a -o test $(LIBS) clean: - rm -f *.o test + rm -f *.o test stroke