LIBRARY = cairo CC = gcc CFLAGS = -c -O2 DEFINES = -DHAVE_CONFIG_H -U_WIN32 -DCAIRO_NO_MUTEX INCLUDES = -I../pixman -I../newlib/include -I../newlib/include/sys SOURCES = \ cairo-analysis-surface.c \ cairo-arc.c \ cairo-array.c \ cairo-atomic.c \ cairo-base64-stream.c \ cairo-base85-stream.c \ cairo-bentley-ottmann.c \ cairo-bentley-ottmann-rectangular.c \ cairo-bentley-ottmann-rectilinear.c \ cairo-botor-scan-converter.c \ cairo-boxes.c \ cairo.c \ cairo-cache.c \ cairo-clip.c \ cairo-color.c \ cairo-composite-rectangles.c \ cairo-debug.c \ cairo-device.c \ cairo-fixed.c \ cairo-font-face.c \ cairo-font-face-twin.c \ cairo-font-face-twin-data.c \ cairo-font-options.c \ cairo-freelist.c \ cairo-freed-pool.c \ cairo-gstate.c \ cairo-hash.c \ cairo-hull.c \ cairo-image-info.c \ cairo-image-surface.c \ cairo-lzw.c \ cairo-matrix.c \ cairo-recording-surface.c \ cairo-misc.c \ cairo-mutex.c \ cairo-observer.c \ cairo-output-stream.c \ cairo-paginated-surface.c \ cairo-path-bounds.c \ cairo-path.c \ cairo-path-fill.c \ cairo-path-fixed.c \ cairo-path-in-fill.c \ cairo-path-stroke.c \ cairo-pattern.c \ cairo-pen.c \ cairo-polygon.c \ cairo-rectangle.c \ cairo-rectangular-scan-converter.c \ cairo-region.c \ cairo-rtree.c \ cairo-scaled-font.c \ cairo-slope.c \ cairo-spans.c \ cairo-spline.c \ cairo-stroke-style.c \ cairo-surface.c \ cairo-surface-fallback.c \ cairo-surface-clipper.c \ cairo-surface-offset.c \ cairo-surface-snapshot.c \ cairo-surface-subsurface.c \ cairo-surface-wrapper.c \ cairo-tor-scan-converter.c \ cairo-toy-font-face.c \ cairo-traps.c \ cairo-unicode.c \ cairo-user-font.c \ cairo-version.c \ cairo-wideint.c \ $(NULL) OBJECTS = $(patsubst %.c, src/%.o, $(SOURCES)) # targets all:$(LIBRARY).a $(LIBRARY).a: $(OBJECTS) Makefile ar cvrs $(LIBRARY).a $(OBJECTS) %.o : %.c Makefile $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<