Subversion Repositories Kolibri OS

Rev

Rev 5022 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. LIBRARY = pixman-1
  2.  
  3. CC = kos32-gcc
  4. AR = kos32-ar
  5. LD = kos32-ld
  6. STRIP = kos32-strip
  7.  
  8. INSTALLDIR:= /home/autobuild/tools/win32/lib
  9.  
  10. CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fno-ident -fomit-frame-pointer
  11.  
  12. LDFLAGS = -shared -s -T dll.lds --entry _DllStartup --image-base=0
  13. LDFLAGS+= --out-implib lib$(LIBRARY).dll.a
  14.  
  15. ARFLAGS = cvrs
  16.  
  17. INCLUDES= -I. -I../newlib/libc/include
  18.  
  19. LIBS:=  -ldll -lgcc -lc.dll
  20.  
  21. #DEFINES = -DHAVE_CONFIG_H -DPIXMAN_NO_TLS
  22. DEFINES = -DHAVE_CONFIG_H
  23.  
  24.  
  25. SOURCES =                               \
  26.         pixman.c                        \
  27.         pixman-access.c                 \
  28.         pixman-access-accessors.c       \
  29.         pixman-bits-image.c             \
  30.         pixman-combine32.c              \
  31.         pixman-combine-float.c          \
  32.         pixman-conical-gradient.c       \
  33.         pixman-edge.c                   \
  34.         pixman-edge-accessors.c         \
  35.         pixman-fast-path.c              \
  36.         pixman-filter.c                 \
  37.         pixman-general.c                \
  38.         pixman-glyph.c                  \
  39.         pixman-gradient-walker.c        \
  40.         pixman-image.c                  \
  41.         pixman-implementation.c         \
  42.         pixman-linear-gradient.c        \
  43.         pixman-matrix.c                 \
  44.         pixman-noop.c                   \
  45.         pixman-radial-gradient.c        \
  46.         pixman-region16.c               \
  47.         pixman-region32.c               \
  48.         pixman-solid-fill.c             \
  49.         pixman-timer.c                  \
  50.         pixman-trap.c                   \
  51.         pixman-utils.c                  \
  52.         pixman-x86.c                    \
  53.         pixman-mmx.c                    \
  54.         pixman-sse2.c                   \
  55.         $(NULL)
  56.  
  57. OBJECTS     = $(patsubst %.c, %.o, $(SOURCES))
  58.  
  59. ifeq ($(findstring ebox,$(MAKECMDGOALS)),ebox)
  60. CFLAGS+=-march=pentium-mmx
  61. endif
  62.  
  63. # targets
  64.  
  65. all:lib$(LIBRARY).a $(LIBRARY).dll
  66.  
  67. ebox:$lib(LIBRARY).a $(LIBRARY).dll
  68.  
  69. lib$(LIBRARY).a: $(OBJECTS) Makefile
  70.         $(AR) $(ARFLAGS) lib$(LIBRARY).a $(OBJECTS)
  71.         mv -f lib$(LIBRARY).a $(INSTALLDIR)
  72.  
  73. $(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile
  74.         $(LD) $(LDFLAGS) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS)
  75.         #sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
  76.         #sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
  77.         mv -f $@ ../../bin
  78.         mv -f lib$(LIBRARY).dll.a $(INSTALLDIR)
  79.        
  80.  
  81. %.o : %.c Makefile
  82.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  83.  
  84. pixman-mmx.o: pixman-mmx.c Makefile
  85.         $(CC) $(CFLAGS) -mmmx $(DEFINES) $(INCLUDES) -o $@ $<
  86.  
  87. pixman-sse2.o: pixman-sse2.c Makefile
  88.         $(CC) $(CFLAGS) -msse2 $(DEFINES) $(INCLUDES) -o $@ $<
  89.  
  90.  
  91. clean:
  92.         -rm -f *.o
  93.