Subversion Repositories Kolibri OS

Rev

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

Rev 4367 Rev 4866
Line 1... Line -...
1
LIBRARY= libpng16
-
 
2
 
1
LIBRARY= libpng16
Line 3... Line 2...
3
CC=gcc
2
 
4
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
3
CC = kos32-gcc
5
 
-
 
6
LD = ld
4
AR = kos32-ar
-
 
5
LD = kos32-ld
Line 7... Line -...
7
 
-
 
-
 
6
STRIP = kos32-strip
Line -... Line 7...
-
 
7
 
8
AR= ar
8
CFLAGS = -UWIN32 -UWindows -U_WINDOWS -U_WIN32 -U__WIN32__ -c -O2 -fomit-frame-pointer
Line 9... Line 9...
9
 
9
 
Line 10... Line 10...
10
STRIP = $(PREFIX)strip
10
LDFLAGS= -shared -s -nostdlib -T ../newlib/dll.lds --entry _DllStartup --image-base=0
Line 11... Line 11...
11
 
11
LDFLAGS+=  --out-implib $(LIBRARY).dll.a
Line 44... Line 44...
44
 
44
all:$(LIBRARY).a $(LIBRARY).dll
Line 45... Line 45...
45
ebox:$(LIBRARY).a $(LIBRARY).dll
45
 
Line 46... Line 46...
46
 
46
ebox:$(LIBRARY).a $(LIBRARY).dll
47
$(LIBRARY).a: $(OBJECTS) Makefile
47
 
48
	ar cvrs $(LIBRARY).a $(OBJECTS)
48
$(LIBRARY).a: $(OBJECTS) Makefile
Line 49... Line 49...
49
	mv -f $(LIBRARY).a ../../lib
49
	$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJECTS)
50
 
50
	mv -f $(LIBRARY).a ../../lib
51
$(LIBRARY).dll: libpng16.def $(OBJECTS) Makefile
51
 
52
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@  libpng16.def $(OBJECTS) $(LIBS)
52
$(LIBRARY).dll: libpng16.def $(OBJECTS) Makefile
53
	$(STRIP) $@
53
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@  libpng16.def $(OBJECTS) $(LIBS)
54
	sed -f ../newlib/cmd1.sed libpng16.def > mem
54
	$(STRIP) $@
55
	sed -f ../newlib/cmd2.sed mem >libpng.inc
55
	#sed -f ../newlib/cmd1.sed libpng16.def > mem
Line 56... Line 56...
56
	mv -f $@ ../../bin
56
	#sed -f ../newlib/cmd2.sed mem >libpng.inc