Subversion Repositories Kolibri OS

Rev

Rev 1907 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

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