Subversion Repositories Kolibri OS

Rev

Rev 4362 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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