~ubuntu-branches/ubuntu/wily/luatex/wily

« back to all changes in this revision

Viewing changes to source/libs/zlib/zlib-1.2.3/contrib/untgz/makefile.w32

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-04-29 00:47:19 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429004719-o42etkqe90n97b9e
Tags: 0.60.1-1
* new upstream release, adapt build-script patch
* disable patch: upstream-epstopdf_cc_no_xpdf_patching, included upstream
* disable patch: libpoppler-0.12, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for zlib.  Modified for mingw32
 
2
# For conditions of distribution and use, see copyright notice in zlib.h 
 
3
 
 
4
# To compile, 
 
5
 
6
#   make -fmakefile.w32
 
7
 
8
 
 
9
CC=gcc
 
10
 
 
11
# Generate dependencies (see end of the file)
 
12
 
 
13
CPPFLAGS=-MMD 
 
14
 
 
15
#CFLAGS=-MMD -O
 
16
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
 
17
#CFLAGS=-MMD -g -DDEBUG
 
18
CFLAGS=-O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
 
19
             -Wstrict-prototypes -Wmissing-prototypes
 
20
 
 
21
# If cp.exe is not found, replace with copy /Y .
 
22
CP=cp -f
 
23
 
 
24
# The default value of RM is "rm -f."  
 
25
# If "rm.exe" is not found, uncomment:
 
26
# RM=del
 
27
 
 
28
LD=gcc
 
29
LDLIBS=-L. -lz
 
30
LDFLAGS=-s
 
31
 
 
32
 
 
33
INCL=zlib.h zconf.h
 
34
LIBS=libz.a
 
35
 
 
36
AR=ar rcs
 
37
 
 
38
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
 
39
       zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o \
 
40
       inffast.o
 
41
 
 
42
TEST_OBJS = minigzip.o untgz.o
 
43
 
 
44
all: minigzip.exe untgz.exe
 
45
 
 
46
rebuild:        clean   all
 
47
 
 
48
libz.a: $(OBJS)
 
49
        $(AR) $@ $(OBJS)
 
50
 
 
51
%.exe : %.o $(LIBS)
 
52
        $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS)
 
53
 
 
54
.PHONY : clean
 
55
 
 
56
clean:
 
57
        $(RM) *.d *.o *.exe libz.a foo.gz
 
58
 
 
59
DEPS := $(wildcard *.d)
 
60
ifneq ($(DEPS),)
 
61
include $(DEPS)
 
62
endif
 
63