reworked edgestyle logic
[swftools.git] / lib / gfxpoly / Makefile
1 all: test stroke
2 include ../../Makefile.common
3
4 CC = gcc -O2 -g
5 #CC = gcc -O3
6
7 ../libbase.a: ../q.c ../q.h ../mem.c ../mem.h
8         cd ..; make libbase.a
9
10 ../libgfx.a: ../gfxtools.h ../gfxtools.c ../gfxpoly.h ../gfxpoly.c
11         cd ..; make libgfx.a
12
13 testheap: ../libbase.a testheap.c
14         $(CC) testheap.c ../libbase.a -o testheap -lm -lz -ljpeg
15
16 OBJS = active.o convert.o poly.o wind.o renderpoly.o xrow.o stroke.o
17
18 active.o: active.c active.h poly.h
19         $(CC) -c active.c -o active.o
20
21 convert.o: convert.c convert.h poly.h
22         $(CC) -c convert.c -o convert.o
23
24 poly.o: poly.c poly.h active.h heap.h ../q.h
25         $(CC) -c poly.c -o poly.o
26
27 wind.o: wind.c wind.h poly.h
28         $(CC) -c wind.c -o wind.o
29
30 renderpoly.o: renderpoly.c wind.h poly.h renderpoly.h
31         $(CC) -c renderpoly.c -o renderpoly.o
32
33 xrow.o: xrow.c xrow.h ../q.h ../mem.h
34         $(CC) -c xrow.c -o xrow.o
35
36 stroke.o: stroke.c poly.h convert.h wind.h
37         $(CC) -c stroke.c -o stroke.o
38
39 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
40 stroke: test_stroke.c $(OBJS) ../libgfxswf.a ../librfxswf.a ../libbase.a 
41         $(CC) test_stroke.c $(OBJS) ../libgfxswf.a ../librfxswf.a $(GFX) ../libbase.a -o stroke $(LIBS)
42
43 SWF = ../librfxswf.a ../libpdf.a -lstdc++
44 test: ../libbase.a test.c $(OBJS) poly.h convert.h $(GFX) 
45         $(CC) test.c $(OBJS) $(SWF) $(GFX) ../libbase.a -o test $(LIBS)
46
47 clean: 
48         rm -f *.o test stroke