mirror of
https://github.com/reactos/reactos.git
synced 2024-09-19 09:09:53 +00:00
9ea495ba33
svn path=/branches/header-work/; revision=45691
47 lines
683 B
Makefile
Executable file
47 lines
683 B
Makefile
Executable file
# $Id$
|
|
PATH_TO_TOP = ../..
|
|
|
|
TARGET = zlib.host.a
|
|
|
|
CFLAGS = \
|
|
-MMD -O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
|
|
-Wstrict-prototypes -Wmissing-prototypes
|
|
|
|
OBJECTS = \
|
|
adler32.o \
|
|
compress.o \
|
|
crc32.o \
|
|
gzio.o \
|
|
uncompr.o \
|
|
deflate.o \
|
|
trees.o \
|
|
zutil.o \
|
|
inflate.o \
|
|
infblock.o \
|
|
inftrees.o \
|
|
infcodes.o \
|
|
infutil.o \
|
|
inffast.o
|
|
|
|
OBJECTS := $(OBJECTS:%=hostobjs/%)
|
|
|
|
all: hostobjs $(TARGET)
|
|
|
|
hostobjs:
|
|
- $(RMKDIR) hostobjs
|
|
|
|
hostobjs/%.o: %.c
|
|
$(HOST_CC) $(CFLAGS) -c $< -o $@
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
$(HOST_AR) -r $(TARGET) $^
|
|
|
|
clean:
|
|
- $(RM) hostobjs/*
|
|
- $(RM) $(TARGET)
|
|
- $(RMDIR) hostobjs
|
|
|
|
.phony: clean
|
|
|
|
include $(PATH_TO_TOP)/rules.mak
|