2013-12-15 09:09:20 +01:00
|
|
|
LIBRARY = pixman-1
|
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
CC = kos32-gcc
|
|
|
|
AR = kos32-ar
|
|
|
|
LD = kos32-ld
|
|
|
|
STRIP = kos32-strip
|
|
|
|
|
2016-11-04 07:36:45 +01:00
|
|
|
INSTALLDIR:= /home/autobuild/tools/win32/lib
|
|
|
|
|
2014-08-07 13:48:01 +02:00
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fno-ident -fomit-frame-pointer
|
2013-12-15 09:09:20 +01:00
|
|
|
|
2016-11-04 07:36:45 +01:00
|
|
|
LDFLAGS = -shared -s -T dll.lds --entry _DllStartup --image-base=0
|
2014-04-21 19:06:44 +02:00
|
|
|
LDFLAGS+= --out-implib lib$(LIBRARY).dll.a
|
2013-12-15 09:09:20 +01:00
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
ARFLAGS = cvrs
|
2013-12-15 09:09:20 +01:00
|
|
|
|
2014-05-21 22:47:51 +02:00
|
|
|
INCLUDES= -I. -I../newlib/libc/include
|
2013-12-15 09:09:20 +01:00
|
|
|
|
2016-11-04 07:36:45 +01:00
|
|
|
LIBS:= -ldll -lgcc -lc.dll
|
2013-12-15 09:09:20 +01:00
|
|
|
|
|
|
|
#DEFINES = -DHAVE_CONFIG_H -DPIXMAN_NO_TLS
|
|
|
|
DEFINES = -DHAVE_CONFIG_H
|
|
|
|
|
|
|
|
|
|
|
|
SOURCES = \
|
|
|
|
pixman.c \
|
|
|
|
pixman-access.c \
|
|
|
|
pixman-access-accessors.c \
|
|
|
|
pixman-bits-image.c \
|
|
|
|
pixman-combine32.c \
|
|
|
|
pixman-combine-float.c \
|
|
|
|
pixman-conical-gradient.c \
|
|
|
|
pixman-edge.c \
|
|
|
|
pixman-edge-accessors.c \
|
|
|
|
pixman-fast-path.c \
|
|
|
|
pixman-filter.c \
|
|
|
|
pixman-general.c \
|
|
|
|
pixman-glyph.c \
|
|
|
|
pixman-gradient-walker.c \
|
|
|
|
pixman-image.c \
|
|
|
|
pixman-implementation.c \
|
|
|
|
pixman-linear-gradient.c \
|
|
|
|
pixman-matrix.c \
|
|
|
|
pixman-noop.c \
|
|
|
|
pixman-radial-gradient.c \
|
|
|
|
pixman-region16.c \
|
|
|
|
pixman-region32.c \
|
|
|
|
pixman-solid-fill.c \
|
|
|
|
pixman-timer.c \
|
|
|
|
pixman-trap.c \
|
|
|
|
pixman-utils.c \
|
|
|
|
pixman-x86.c \
|
|
|
|
pixman-mmx.c \
|
|
|
|
pixman-sse2.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
|
|
|
|
|
2013-12-16 01:16:20 +01:00
|
|
|
ifeq ($(findstring ebox,$(MAKECMDGOALS)),ebox)
|
|
|
|
CFLAGS+=-march=pentium-mmx
|
|
|
|
endif
|
|
|
|
|
2013-12-15 09:09:20 +01:00
|
|
|
# targets
|
|
|
|
|
2014-04-11 07:53:42 +02:00
|
|
|
all:lib$(LIBRARY).a $(LIBRARY).dll
|
2013-12-15 09:09:20 +01:00
|
|
|
|
2014-04-11 07:53:42 +02:00
|
|
|
ebox:$lib(LIBRARY).a $(LIBRARY).dll
|
2013-12-16 01:16:20 +01:00
|
|
|
|
2014-04-11 07:53:42 +02:00
|
|
|
lib$(LIBRARY).a: $(OBJECTS) Makefile
|
2014-04-21 19:06:44 +02:00
|
|
|
$(AR) $(ARFLAGS) lib$(LIBRARY).a $(OBJECTS)
|
2016-11-04 07:36:45 +01:00
|
|
|
mv -f lib$(LIBRARY).a $(INSTALLDIR)
|
2013-12-15 09:09:20 +01:00
|
|
|
|
|
|
|
$(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile
|
2016-11-04 07:36:45 +01:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS)
|
2014-04-21 19:06:44 +02:00
|
|
|
#sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
|
|
|
|
#sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
|
2013-12-15 09:09:20 +01:00
|
|
|
mv -f $@ ../../bin
|
2016-11-04 07:36:45 +01:00
|
|
|
mv -f lib$(LIBRARY).dll.a $(INSTALLDIR)
|
2013-12-15 09:09:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
%.o : %.c Makefile
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
pixman-mmx.o: pixman-mmx.c Makefile
|
|
|
|
$(CC) $(CFLAGS) -mmmx $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
pixman-sse2.o: pixman-sse2.c Makefile
|
|
|
|
$(CC) $(CFLAGS) -msse2 $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o
|
|
|
|
|