[CRYPT32]
[reactos.git] / reactos / lib / 3rdparty / zlib / Makefile.host
1 # $Id$
2 PATH_TO_TOP = ../..
3
4 TARGET = zlib.host.a
5
6 CFLAGS = \
7 -MMD -O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
8 -Wstrict-prototypes -Wmissing-prototypes
9
10 OBJECTS = \
11 adler32.o \
12 compress.o \
13 crc32.o \
14 gzio.o \
15 uncompr.o \
16 deflate.o \
17 trees.o \
18 zutil.o \
19 inflate.o \
20 infblock.o \
21 inftrees.o \
22 infcodes.o \
23 infutil.o \
24 inffast.o
25
26 OBJECTS := $(OBJECTS:%=hostobjs/%)
27
28 all: hostobjs $(TARGET)
29
30 hostobjs:
31 - $(RMKDIR) hostobjs
32
33 hostobjs/%.o: %.c
34 $(HOST_CC) $(CFLAGS) -c $< -o $@
35
36 $(TARGET): $(OBJECTS)
37 $(HOST_AR) -r $(TARGET) $^
38
39 clean:
40 - $(RM) hostobjs/*
41 - $(RM) $(TARGET)
42 - $(RMDIR) hostobjs
43
44 .phony: clean
45
46 include $(PATH_TO_TOP)/rules.mak