~ubuntu-branches/ubuntu/trusty/zlib/trusty

« back to all changes in this revision

Viewing changes to old/Makefile.emx

  • Committer: Package Import Robot
  • Author(s): Mark Brown
  • Date: 2012-06-22 16:55:56 UTC
  • mfrom: (1.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20120622165556-9xuc7gnq4w25b3i0
Yet more s390x cleanup.  Thanks to the s390x porters for thei
prompt an efficient buildd monitoring (closes: #678511).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for zlib.  Modified for emx/rsxnt by Chr. Spieler, 6/16/98.
 
2
# Copyright (C) 1995-1998 Jean-loup Gailly.
 
3
# For conditions of distribution and use, see copyright notice in zlib.h
 
4
 
 
5
# To compile, or to compile and test, type:
 
6
#
 
7
#   make -fmakefile.emx;  make test -fmakefile.emx
 
8
#
 
9
 
 
10
CC=gcc -Zwin32
 
11
 
 
12
#CFLAGS=-MMD -O
 
13
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
 
14
#CFLAGS=-MMD -g -DDEBUG
 
15
CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
 
16
             -Wstrict-prototypes -Wmissing-prototypes
 
17
 
 
18
# If cp.exe is available, replace "copy /Y" with "cp -fp" .
 
19
CP=copy /Y
 
20
# If gnu install.exe is available, replace $(CP) with ginstall.
 
21
INSTALL=$(CP)
 
22
# The default value of RM is "rm -f."  If "rm.exe" is found, comment out:
 
23
RM=del
 
24
LDLIBS=-L. -lzlib
 
25
LD=$(CC) -s -o
 
26
LDSHARED=$(CC)
 
27
 
 
28
INCL=zlib.h zconf.h
 
29
LIBS=zlib.a
 
30
 
 
31
AR=ar rcs
 
32
 
 
33
prefix=/usr/local
 
34
exec_prefix = $(prefix)
 
35
 
 
36
OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \
 
37
       gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
 
38
 
 
39
TEST_OBJS = example.o minigzip.o
 
40
 
 
41
all: example.exe minigzip.exe
 
42
 
 
43
test: all
 
44
        ./example
 
45
        echo hello world | .\minigzip | .\minigzip -d
 
46
 
 
47
%.o : %.c
 
48
        $(CC) $(CFLAGS) -c $< -o $@
 
49
 
 
50
zlib.a: $(OBJS)
 
51
        $(AR) $@ $(OBJS)
 
52
 
 
53
%.exe : %.o $(LIBS)
 
54
        $(LD) $@ $< $(LDLIBS)
 
55
 
 
56
 
 
57
.PHONY : clean
 
58
 
 
59
clean:
 
60
        $(RM) *.d
 
61
        $(RM) *.o
 
62
        $(RM) *.exe
 
63
        $(RM) zlib.a
 
64
        $(RM) foo.gz
 
65
 
 
66
DEPS := $(wildcard *.d)
 
67
ifneq ($(DEPS),)
 
68
include $(DEPS)
 
69
endif