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