Rev 1907 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1907 | Rev 3931 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | LIBRARY = pixman-1 |
1 | LIBRARY = pixman-1 |
Line 2... | Line 2... | ||
2 | 2 | ||
- | 3 | CC = gcc |
|
Line -... | Line 4... | ||
- | 4 | CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fomit-frame-pointer |
|
3 | CC = gcc |
5 | |
Line 4... | Line -... | ||
4 | - | ||
5 | CFLAGS = -c -O2 -mmmx -Winline -fomit-frame-pointer |
6 | LD = ld |
Line 6... | Line -... | ||
6 | - | ||
7 | LDIMPORT:= -nostdlib --out-implib libpiximp.a --exclude-libs libamz.a |
- | |
8 | LDFLAGS:= -shared -s -T ../newlib/dll.lds --image-base 0 |
7 | LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --out-implib $(LIBRARY).dll.a |
Line 9... | Line 8... | ||
9 | 8 | ||
Line 10... | Line 9... | ||
10 | DEFINES = -DHAVE_CONFIG_H -DPIXMAN_NO_TLS -DUSE_MMX |
9 | STRIP = $(PREFIX)strip |
- | 10 | ||
- | 11 | INCLUDES= -I. -I../newlib/include |
|
- | 12 | ||
Line 11... | Line 13... | ||
11 | 13 | LIBPATH:= -L../newlib |
|
12 | INCLUDES = -I../pixman -I../newlib/include |
14 | |
13 | 15 | LIBS:= -ldll -lc.dll -lgcc |
|
14 | LIBPATH:= -L../newlib |
16 | |
15 | - | ||
16 | LIBS:= -lamz -lgcc -lcimp |
17 | DEFINES = -DHAVE_CONFIG_H |
17 | 18 | ||
18 | SOURCES = \ |
19 | |
19 | pixman-image.c \ |
20 | SOURCES = \ |
20 | pixman-access.c \ |
21 | pixman.c \ |
21 | pixman-access-accessors.c \ |
22 | pixman-access.c \ |
22 | pixman-region16.c \ |
23 | pixman-access-accessors.c \ |
23 | pixman-region32.c \ |
24 | pixman-bits-image.c \ |
- | 25 | pixman-combine32.c \ |
|
24 | pixman-combine32.c \ |
26 | pixman-combine-float.c \ |
25 | pixman-combine64.c \ |
27 | pixman-conical-gradient.c \ |
- | 28 | pixman-edge.c \ |
|
- | 29 | pixman-edge-accessors.c \ |
|
26 | pixman-utils.c \ |
30 | pixman-fast-path.c \ |
- | 31 | pixman-filter.c \ |
|
- | 32 | pixman-general.c \ |
|
27 | pixman-edge.c \ |
33 | pixman-glyph.c \ |
28 | pixman-edge-accessors.c \ |
34 | pixman-gradient-walker.c \ |
29 | pixman-trap.c \ |
- | |
30 | pixman-timer.c \ |
- | |
31 | pixman-matrix.c \ |
35 | pixman-image.c \ |
32 | pixman-gradient-walker.c \ |
- | |
33 | pixman-linear-gradient.c \ |
36 | pixman-implementation.c \ |
34 | pixman-radial-gradient.c \ |
37 | pixman-linear-gradient.c \ |
- | 38 | pixman-matrix.c \ |
|
- | 39 | pixman-noop.c \ |
|
- | 40 | pixman-radial-gradient.c \ |
|
35 | pixman-bits-image.c \ |
41 | pixman-region16.c \ |
- | 42 | pixman-region32.c \ |
|
36 | pixman.c \ |
43 | pixman-solid-fill.c \ |
Line 37... | Line 44... | ||
37 | pixman-cpu.c \ |
44 | pixman-timer.c \ |
Line 38... | Line 45... | ||
38 | pixman-fast-path.c \ |
45 | pixman-trap.c \ |
Line 51... | Line 58... | ||
51 | 58 | ||
52 | $(LIBRARY).a: $(OBJECTS) Makefile |
59 | $(LIBRARY).a: $(OBJECTS) Makefile |
Line 53... | Line 60... | ||
53 | ar cvrs $(LIBRARY).a $(OBJECTS) |
60 | ar cvrs $(LIBRARY).a $(OBJECTS) |
54 | 61 | ||
- | 62 | $(LIBRARY).dll: $(LIBRARY).def $(OBJECTS) Makefile |
|
- | 63 | $(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS) |
|
- | 64 | $(STRIP) $@ |
|
Line 55... | Line -... | ||
55 | $(LIBRARY).dll: $(OBJECTS) Makefile |
- | |
56 | ld $(LDFLAGS) $(LDIMPORT) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS) |
65 | sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem |
57 | 66 | sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc |
|
Line -... | Line 67... | ||
- | 67 | ||
- | 68 | %.o : %.c Makefile |
|
- | 69 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
|
- | 70 | ||
- | 71 | pixman-mmx.o: pixman-mmx.c Makefile |
|
- | 72 | $(CC) $(CFLAGS) -mmmx $(DEFINES) $(INCLUDES) -o $@ $< |
|
Line 58... | Line 73... | ||
58 | 73 | ||
59 | %.o: %.c $(SOURCES) Makefile |
74 | pixman-sse2.o: pixman-sse2.c Makefile |
Line 60... | Line 75... | ||
60 | $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $< |
75 | $(CC) $(CFLAGS) -msse2 $(DEFINES) $(INCLUDES) -o $@ $< |