aboutsummaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-03-12 22:21:24 -0700
committerMark Adler <madler@alumni.caltech.edu>2012-03-12 22:43:04 -0700
commit9c08a822463664c204ff57a0a91abe727d7987c1 (patch)
treecd6d2004c6551f73cb52a76a7f5ce783447a6269 /old
parent142f051fb27ef7f40e0341a68b23dfd17a4b1fe9 (diff)
downloadzlib-9c08a822463664c204ff57a0a91abe727d7987c1.tar.gz
zlib-9c08a822463664c204ff57a0a91abe727d7987c1.tar.bz2
zlib-9c08a822463664c204ff57a0a91abe727d7987c1.zip
Move obsolete emx makefile to old [Truta].
Diffstat (limited to 'old')
-rw-r--r--old/Makefile.emx69
1 files changed, 69 insertions, 0 deletions
diff --git a/old/Makefile.emx b/old/Makefile.emx
new file mode 100644
index 0000000..4d6ab0e
--- /dev/null
+++ b/old/Makefile.emx
@@ -0,0 +1,69 @@
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
10CC=gcc -Zwin32
11
12#CFLAGS=-MMD -O
13#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
14#CFLAGS=-MMD -g -DDEBUG
15CFLAGS=-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" .
19CP=copy /Y
20# If gnu install.exe is available, replace $(CP) with ginstall.
21INSTALL=$(CP)
22# The default value of RM is "rm -f." If "rm.exe" is found, comment out:
23RM=del
24LDLIBS=-L. -lzlib
25LD=$(CC) -s -o
26LDSHARED=$(CC)
27
28INCL=zlib.h zconf.h
29LIBS=zlib.a
30
31AR=ar rcs
32
33prefix=/usr/local
34exec_prefix = $(prefix)
35
36OBJS = 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
39TEST_OBJS = example.o minigzip.o
40
41all: example.exe minigzip.exe
42
43test: all
44 ./example
45 echo hello world | .\minigzip | .\minigzip -d
46
47%.o : %.c
48 $(CC) $(CFLAGS) -c $< -o $@
49
50zlib.a: $(OBJS)
51 $(AR) $@ $(OBJS)
52
53%.exe : %.o $(LIBS)
54 $(LD) $@ $< $(LDLIBS)
55
56
57.PHONY : clean
58
59clean:
60 $(RM) *.d
61 $(RM) *.o
62 $(RM) *.exe
63 $(RM) zlib.a
64 $(RM) foo.gz
65
66DEPS := $(wildcard *.d)
67ifneq ($(DEPS),)
68include $(DEPS)
69endif