Subversion Repositories Kolibri OS

Rev

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

Rev 1907 Rev 3928
Line 1... Line 1...
1
LIBRARY= libpng
1
LIBRARY= libpng16
Line 2... Line 2...
2
 
2
 
3
CC=gcc
3
CC=gcc
4
CPP=gcc -E
-
 
Line 5... Line 4...
5
AR= ar rc
4
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
Line 6... Line 5...
6
 
5
 
Line -... Line 6...
-
 
6
LD = ld
-
 
7
 
7
CFLAGS = -c -O2 -fomit-frame-pointer
8
AR= ar
-
 
9
 
-
 
10
STRIP = $(PREFIX)strip
-
 
11
 
-
 
12
LDFLAGS:=  -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0 --out-implib libpng.dll.a
-
 
13
 
-
 
14
INCLUDES= -I. -I../newlib/include -I../zlib
Line 8... Line 15...
8
 
15
 
Line -... Line 16...
-
 
16
LIBPATH:= -L../newlib -L../zlib
9
LDIMPORT:= -nostdlib --out-implib libpngimp.a 
17
 
Line 10... Line 18...
10
 
18
LIBS:=  -ldll -lc.dll -lz.dll
Line 11... Line -...
11
LDFLAGS:=  -shared -s -T../newlib/dll.lds --image-base 0
-
 
12
 
-
 
13
DEFS = -DHAVE_CONFIG_H
-
 
Line 14... Line -...
14
 
-
 
Line 15... Line 19...
15
LIBPNG_DEFINES = -DPNG_CONFIGURE_LIBPNG 
19
 
16
 
20
DEFS = -DHAVE_CONFIG_H
17
DEFINES= $(DEFS) $(LIBPNG_DEFINES)
21
 
18
 
22
 
Line 39... Line 43...
39
 
43
 
40
$(LIBRARY).a: $(OBJECTS) Makefile
44
$(LIBRARY).a: $(OBJECTS) Makefile
Line 41... Line 45...
41
	ar cvrs $(LIBRARY).a $(OBJECTS)
45
	ar cvrs $(LIBRARY).a $(OBJECTS)
42
 
46
 
-
 
47
$(LIBRARY).dll: libpng16.def $(OBJECTS) Makefile
-
 
48
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@  libpng16.def $(OBJECTS) $(LIBS)
-
 
49
	$(STRIP) $@
Line 43... Line 50...
43
$(LIBRARY).dll: $(OBJECTS) Makefile
50
	sed -f ../newlib/cmd1.sed libpng16.def > mem
44
	ld $(LDFLAGS) $(LDIMPORT) $(LIBPATH) -o $@ $(OBJECTS) $(LIBS) symbols.def 
51
	sed -f ../newlib/cmd2.sed mem >libpng.inc
Line 45... Line 52...
45
 
52