Rev 4866 | Rev 5022 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4349 | Serge | 1 | LIBRARY = pixman-1 |
2 | |||
4866 | Serge | 3 | CC = kos32-gcc |
4 | AR = kos32-ar |
||
5 | LD = kos32-ld |
||
6 | STRIP = kos32-strip |
||
7 | |||
4349 | Serge | 8 | CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fomit-frame-pointer |
9 | |||
4866 | Serge | 10 | LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 |
11 | LDFLAGS+= --out-implib lib$(LIBRARY).dll.a |
||
4349 | Serge | 12 | |
4866 | Serge | 13 | ARFLAGS = cvrs |
4349 | Serge | 14 | |
4930 | Serge | 15 | INCLUDES= -I. -I../newlib/libc/include |
4349 | Serge | 16 | |
4866 | Serge | 17 | LIBPATH:= -L../../lib -L/home/autobuild/tools/win32/mingw32/lib |
4349 | Serge | 18 | |
19 | LIBS:= -ldll -lc.dll -lgcc |
||
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 | |||
4367 | Serge | 59 | ifeq ($(findstring ebox,$(MAKECMDGOALS)),ebox) |
60 | CFLAGS+=-march=pentium-mmx |
||
61 | endif |
||
62 | |||
4349 | Serge | 63 | # targets |
64 | |||
4819 | Serge | 65 | all:lib$(LIBRARY).a $(LIBRARY).dll |
4349 | Serge | 66 | |
4819 | Serge | 67 | ebox:$lib(LIBRARY).a $(LIBRARY).dll |
4349 | Serge | 68 | |
4819 | Serge | 69 | lib$(LIBRARY).a: $(OBJECTS) Makefile |
4866 | Serge | 70 | $(AR) $(ARFLAGS) lib$(LIBRARY).a $(OBJECTS) |
4819 | Serge | 71 | mv -f lib$(LIBRARY).a ../../lib |
4367 | Serge | 72 | |
4349 | Serge | 73 | $(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile |
74 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS) |
||
4866 | Serge | 75 | #sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem |
76 | #sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc |
||
4349 | Serge | 77 | mv -f $@ ../../bin |
78 | mv -f lib$(LIBRARY).dll.a ../../lib |
||
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 |