Subversion Repositories Kolibri OS

Rev

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

Rev 1896 Rev 1898
Line 1... Line 1...
1
# Makefile for zlib
1
# Makefile for zlib
2
# Copyright (C) 1995-2010 Jean-loup Gailly.
2
# Copyright (C) 1995-2010 Jean-loup Gailly.
3
# For conditions of distribution and use, see copyright notice in zlib.h
3
# For conditions of distribution and use, see copyright notice in zlib.h
Line 4... Line -...
4
 
-
 
5
 
4
 
6
CC=gcc
5
CC=gcc
Line 7... Line 6...
7
CPP=gcc -E
6
CPP=gcc -E
Line -... Line 7...
-
 
7
 
-
 
8
CFLAGS= -O3 -c -fomit-frame-pointer
-
 
9
 
-
 
10
LDIMPORT:= -nostdlib --out-implib libzimp.a
8
 
11
 
Line -... Line 12...
-
 
12
LDFLAGS:=  -shared -s -T ../newlib/dll.lds -Map map --image-base 0
Line 9... Line -...
9
CFLAGS= -O3 -c -fomit-frame-pointer
-
 
10
 
13
 
Line 11... Line 14...
11
INCLUDES= -I../newlib/include
14
INCLUDES= -I../newlib/include
Line 12... Line 15...
12
 
15
 
13
 
16
LIBPATH:= -L../newlib
Line 25... Line 28...
25
# to use the asm code: make OBJA=match.o, PIC_OBJA=match.lo
28
# to use the asm code: make OBJA=match.o, PIC_OBJA=match.lo
26
OBJA =
29
OBJA =
Line 27... Line 30...
27
 
30
 
Line 28... Line 31...
28
OBJS = $(OBJC) $(OBJA)
31
OBJS = $(OBJC) $(OBJA)
Line 29... Line 32...
29
 
32
 
30
all: libz.a
33
all: libz.a libz.dll
Line -... Line 34...
-
 
34
 
-
 
35
libz.a: $(OBJS)
-
 
36
	$(AR) $@ $(OBJS)
-
 
37
 
31
 
38
libz.dll: $(OBJECTS) Makefile
32
libz.a: $(OBJS)
39
	ld $(LDFLAGS) $(LDIMPORT) $(LIBPATH) -o $@ $(OBJS) $(LIBS)