Subversion Repositories Kolibri OS

Rev

Rev 4349 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4349 Rev 4362
Line 3... Line 3...
3
CC = gcc
3
CC = gcc
4
CFLAGS = -c -O2 -march=pentium-mmx -ffast-math -Wall -Winline -Wno-attributes -fomit-frame-pointer
4
CFLAGS = -c -O2 -march=pentium-mmx -ffast-math -Wall -Winline -Wno-attributes -fomit-frame-pointer
Line 5... Line 5...
5
 
5
 
6
LD = ld
6
LD = ld
Line 7... Line 7...
7
LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --output-def $(LIBRARY).orig.def --out-implib $(LIBRARY).dll.a
7
LDFLAGS = -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --version-script cairo.ver --output-def $(LIBRARY).orig.def --out-implib $(LIBRARY).dll.a
Line 8... Line 8...
8
 
8
 
Line 9... Line 9...
9
STRIP = $(PREFIX)strip
9
STRIP = $(PREFIX)strip
Line 10... Line 10...
10
 
10
 
Line 11... Line 11...
11
DEFINES = -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -U_MSC_VER -DHAVE_CONFIG_H=1 -DCAIRO_NO_MUTEX=1  
11
DEFINES = -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -U_MSC_VER -DHAVE_CONFIG_H=1 -DCAIRO_NO_MUTEX=1  
Line 12... Line 12...
12
 
12
 
13
INCLUDES = -I. -I../newlib/include -I../pixman -I../zlib -I../libpng -I../freetype/include
13
INCLUDES = -I. -I../newlib/include -I../pixman -I../zlib -I../libpng -I../freetype/include
Line 149... Line 149...
149
 
149
 
Line 150... Line 150...
150
 
150
 
151
$(LIBRARY).a: $(OBJECTS) Makefile
151
$(LIBRARY).a: $(OBJECTS) Makefile
152
	ar cvrs $(LIBRARY).a $(OBJECTS)
152
	ar cvrs $(LIBRARY).a $(OBJECTS)
Line 153... Line 153...
153
	mv -f $(LIBRARY).a ../../static
153
	mv -f $(LIBRARY).a ../../lib
154
 
154
 
155
 
155
 
156
$(LIBRARY).dll: $(OBJECTS) Makefile
156
$(LIBRARY).dll: $(OBJECTS) Makefile
157
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS)
157
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS)
158
	$(STRIP) $@
158
	$(STRIP) $@
159
	sed -e "s/ @[^ ]*//" $(LIBRARY).orig.def > $(LIBRARY).def
159
	sed -e "s/ @[^ ]*//" $(LIBRARY).orig.def > $(LIBRARY).def
160
	sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
160
	sed -f ../newlib/cmd1.sed $(LIBRARY).def > mem
Line 161... Line 161...
161
	sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
161
	sed -f ../newlib/cmd2.sed mem >$(LIBRARY).inc
162
	mv -f $@ ../../lib
162
	mv -f $@ ../../bin
Line 163... Line 163...
163
	mv -f $(LIBRARY).dll.a ../../import   
163
	mv -f $(LIBRARY).dll.a ../../lib