2011-02-27 20:46:46 +03:00
|
|
|
|
|
|
|
LIBRARY = pixman-1
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
2011-03-01 09:51:33 +03:00
|
|
|
CFLAGS = -c -O2 -mmmx -Winline -fomit-frame-pointer
|
2011-02-27 20:46:46 +03:00
|
|
|
|
2011-03-04 08:55:41 +03:00
|
|
|
LDIMPORT:= -nostdlib --out-implib libpiximp.a --exclude-libs libamz.a
|
2011-03-12 12:36:46 +03:00
|
|
|
LDFLAGS:= -shared -s -T ../newlib/dll.lds --image-base 0
|
2011-03-04 08:55:41 +03:00
|
|
|
|
2011-03-12 12:36:46 +03:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DPIXMAN_NO_TLS -DUSE_MMX
|
2011-02-27 20:46:46 +03:00
|
|
|
|
2011-02-28 09:05:46 +03:00
|
|
|
INCLUDES = -I../pixman -I../newlib/include
|
2011-02-27 20:46:46 +03:00
|
|
|
|
2011-03-04 08:55:41 +03:00
|
|
|
LIBPATH:= -L../newlib
|
|
|
|
|
|
|
|
LIBS:= -lamz -lgcc -lcimp
|
|
|
|
|
2011-02-27 20:46:46 +03:00
|
|
|
SOURCES = \
|
|
|
|
pixman-image.c \
|
|
|
|
pixman-access.c \
|
|
|
|
pixman-access-accessors.c \
|
|
|
|
pixman-region16.c \
|
|
|
|
pixman-region32.c \
|
|
|
|
pixman-combine32.c \
|
|
|
|
pixman-combine64.c \
|
|
|
|
pixman-utils.c \
|
|
|
|
pixman-edge.c \
|
|
|
|
pixman-edge-accessors.c \
|
|
|
|
pixman-trap.c \
|
|
|
|
pixman-timer.c \
|
|
|
|
pixman-matrix.c \
|
|
|
|
pixman-gradient-walker.c \
|
|
|
|
pixman-linear-gradient.c \
|
|
|
|
pixman-radial-gradient.c \
|
|
|
|
pixman-bits-image.c \
|
|
|
|
pixman.c \
|
|
|
|
pixman-cpu.c \
|
|
|
|
pixman-fast-path.c \
|
|
|
|
pixman-implementation.c \
|
|
|
|
pixman-solid-fill.c \
|
|
|
|
pixman-general.c \
|
|
|
|
pixman-mmx.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
|
|
|
|
|
|
|
|
# targets
|
|
|
|
|
2011-03-04 08:55:41 +03:00
|
|
|
all:$(LIBRARY).a $(LIBRARY).dll
|
2011-02-27 20:46:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
$(LIBRARY).a: $(OBJECTS) Makefile
|
|
|
|
ar cvrs $(LIBRARY).a $(OBJECTS)
|
|
|
|
|
2011-03-04 08:55:41 +03:00
|
|
|
$(LIBRARY).dll: $(OBJECTS) Makefile
|
|
|
|
ld $(LDFLAGS) $(LDIMPORT) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS)
|
|
|
|
|
|
|
|
|
2011-02-27 20:46:46 +03:00
|
|
|
%.o: %.c $(SOURCES) Makefile
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
|
2011-03-12 12:36:46 +03:00
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
2011-02-27 20:46:46 +03:00
|
|
|
|