annotate zlib/old/Makefile.emx @ 151:2eca1fb48fa2

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