Subversion Repositories Kolibri OS

Rev

Rev 4367 | Rev 4866 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4349 Serge 1
 
2
3
 
4
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -Wall -Winline -fomit-frame-pointer
5
6
 
7
LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --out-implib lib$(LIBRARY).dll.a
8
9
 
10
11
 
12
13
 
14
15
 
16
17
 
18
DEFINES = -DHAVE_CONFIG_H
19
20
 
21
 
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
 
54
55
 
4367 Serge 56
CFLAGS+=-march=pentium-mmx
57
endif
58
59
 
4349 Serge 60
61
 
4819 Serge 62
4349 Serge 63
 
4819 Serge 64
4349 Serge 65
 
4819 Serge 66
	ar cvrs lib$(LIBRARY).a $(OBJECTS)
67
	mv -f lib$(LIBRARY).a ../../lib
68
4367 Serge 69
 
4349 Serge 70
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIBRARY).def $(OBJECTS) $(LIBS)
71
	$(STRIP) $@
72
	sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
73
	sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
74
	mv -f $@ ../../bin
75
	mv -f lib$(LIBRARY).dll.a ../../lib
76
77
 
78
 
79
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
80
81
 
82
	$(CC) $(CFLAGS) -mmmx $(DEFINES) $(INCLUDES) -o $@ $<
83
84
 
85
	$(CC) $(CFLAGS) -msse2 $(DEFINES) $(INCLUDES) -o $@ $<
86
87
 
88
 
89
	-rm -f *.o
90
91