Subversion Repositories Kolibri OS

Rev

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

  1.  
  2. LIBRARY = pixman-1
  3.  
  4. CC = gcc
  5.  
  6. CFLAGS = -c -O2 -mmmx -Winline -fomit-frame-pointer
  7.  
  8. LDIMPORT:= -nostdlib --out-implib libpiximp.a --exclude-libs libamz.a
  9. LDFLAGS:=  -shared -s -T ../newlib/dll.lds --image-base 0
  10.  
  11. DEFINES = -DHAVE_CONFIG_H -DPIXMAN_NO_TLS -DUSE_MMX
  12.  
  13. INCLUDES = -I../pixman -I../newlib/include
  14.  
  15. LIBPATH:= -L../newlib
  16.  
  17. LIBS:=  -lamz -lgcc -lcimp
  18.  
  19. SOURCES =                               \
  20.         pixman-image.c                  \
  21.         pixman-access.c                 \
  22.         pixman-access-accessors.c       \
  23.         pixman-region16.c               \
  24.         pixman-region32.c               \
  25.         pixman-combine32.c              \
  26.         pixman-combine64.c              \
  27.         pixman-utils.c                  \
  28.         pixman-edge.c                   \
  29.         pixman-edge-accessors.c         \
  30.         pixman-trap.c                   \
  31.         pixman-timer.c                  \
  32.         pixman-matrix.c                 \
  33.         pixman-gradient-walker.c        \
  34.         pixman-linear-gradient.c        \
  35.         pixman-radial-gradient.c        \
  36.         pixman-bits-image.c             \
  37.         pixman.c                        \
  38.         pixman-cpu.c                    \
  39.         pixman-fast-path.c              \
  40.         pixman-implementation.c         \
  41.         pixman-solid-fill.c             \
  42.         pixman-general.c                \
  43.         pixman-mmx.c                    \
  44.         $(NULL)
  45.  
  46. OBJECTS     = $(patsubst %.c, %.o, $(SOURCES))
  47.  
  48. # targets
  49.  
  50. all:$(LIBRARY).a $(LIBRARY).dll
  51.  
  52.  
  53. $(LIBRARY).a: $(OBJECTS) Makefile
  54.         ar cvrs $(LIBRARY).a $(OBJECTS)
  55.  
  56. $(LIBRARY).dll: $(OBJECTS) Makefile
  57.         ld $(LDFLAGS) $(LDIMPORT) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS)
  58.  
  59.  
  60. %.o: %.c $(SOURCES) Makefile
  61.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  62.  
  63.  
  64. clean:
  65.         -rm -f *.o
  66.