X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgfxpoly%2FMakefile;h=65eca034b15bdafb36f7f6cedeac9f2b16e243ff;hb=9adb1e34457799c1ceae768241e3eb8615e4e09d;hp=ad3a9cfde6bba7a51a0a5c7d49137e3ccedf3341;hpb=d966a4b935a597e9acd2502ca1e5ffaff51fa418;p=swftools.git diff --git a/lib/gfxpoly/Makefile b/lib/gfxpoly/Makefile index ad3a9cf..65eca03 100644 --- a/lib/gfxpoly/Makefile +++ b/lib/gfxpoly/Makefile @@ -1,8 +1,8 @@ -all: test +all: test speedtest stroke include ../../Makefile.common -CC = gcc -g -O2 -#CC = gcc -O3 +CC = gcc -DDEBUG -DCHECKS -O2 -g -pg +CCO = gcc -O2 -fno-inline -g -pg ../libbase.a: ../q.c ../q.h ../mem.c ../mem.h cd ..; make libbase.a @@ -13,7 +13,8 @@ CC = gcc -g -O2 testheap: ../libbase.a testheap.c $(CC) testheap.c ../libbase.a -o testheap -lm -lz -ljpeg -OBJS = active.o convert.o poly.o wind.o renderpoly.o xrow.o +SRC = active.c convert.c poly.c wind.c renderpoly.c xrow.c stroke.c +OBJS = active.o convert.o poly.o wind.o renderpoly.o xrow.o stroke.o active.o: active.c active.h poly.h $(CC) -c active.c -o active.o @@ -33,9 +34,19 @@ 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++ -test: ../libbase.a ../libgfx.a test.c $(OBJS) poly.h convert.h - $(CC) test.c $(OBJS) $(SWF) ../libbase.a ../libgfx.a -o test $(LIBS) +stroke.o: stroke.c poly.h convert.h wind.h + $(CC) -c stroke.c -o stroke.o + +GFX=../gfxfont.o ../gfxtools.o ../gfximage.o ../devices/ops.o ../devices/polyops.o ../devices/text.o ../devices/bbox.o ../devices/render.o ../devices/rescale.o ../devices/record.o +stroke: test_stroke.c $(OBJS) ../libgfxswf.a ../librfxswf.a ../libbase.a + $(CC) test_stroke.c $(OBJS) ../libgfxswf.a ../librfxswf.a $(GFX) ../libbase.a -o stroke $(LIBS) + +SWF = ../librfxswf.a ../libgfxpdf.a -lstdc++ +test: ../libbase.a test.c $(OBJS) poly.h convert.h $(GFX) + $(CC) test.c $(OBJS) $(SWF) $(GFX) ../libbase.a -o test $(LIBS) + +speedtest: ../libbase.a speedtest.c $(SRC) poly.h convert.h $(GFX) + $(CCO) speedtest.c $(SRC) $(GFX) ../libbase.a -o speedtest $(LIBS) clean: - rm -f *.o test + rm -f *.o test stroke