annotate src/zlib-1.2.7/msdos/Makefile.dj2 @ 23:619f715526df sv_v2.1

Update Vamp plugin SDK to 2.5
author Chris Cannam
date Thu, 09 May 2013 10:52:46 +0100 (2013-05-09)
parents e13257ea84a4
children
rev   line source
Chris@4 1 # Makefile for zlib. Modified for djgpp v2.0 by F. J. Donahoe, 3/15/96.
Chris@4 2 # Copyright (C) 1995-1998 Jean-loup Gailly.
Chris@4 3 # For conditions of distribution and use, see copyright notice in zlib.h
Chris@4 4
Chris@4 5 # To compile, or to compile and test, type:
Chris@4 6 #
Chris@4 7 # make -fmakefile.dj2; make test -fmakefile.dj2
Chris@4 8 #
Chris@4 9 # To install libz.a, zconf.h and zlib.h in the djgpp directories, type:
Chris@4 10 #
Chris@4 11 # make install -fmakefile.dj2
Chris@4 12 #
Chris@4 13 # after first defining LIBRARY_PATH and INCLUDE_PATH in djgpp.env as
Chris@4 14 # in the sample below if the pattern of the DJGPP distribution is to
Chris@4 15 # be followed. Remember that, while <sp>'es around <=> are ignored in
Chris@4 16 # makefiles, they are *not* in batch files or in djgpp.env.
Chris@4 17 # - - - - -
Chris@4 18 # [make]
Chris@4 19 # INCLUDE_PATH=%\>;INCLUDE_PATH%%\DJDIR%\include
Chris@4 20 # LIBRARY_PATH=%\>;LIBRARY_PATH%%\DJDIR%\lib
Chris@4 21 # BUTT=-m486
Chris@4 22 # - - - - -
Chris@4 23 # Alternately, these variables may be defined below, overriding the values
Chris@4 24 # in djgpp.env, as
Chris@4 25 # INCLUDE_PATH=c:\usr\include
Chris@4 26 # LIBRARY_PATH=c:\usr\lib
Chris@4 27
Chris@4 28 CC=gcc
Chris@4 29
Chris@4 30 #CFLAGS=-MMD -O
Chris@4 31 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
Chris@4 32 #CFLAGS=-MMD -g -DDEBUG
Chris@4 33 CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
Chris@4 34 -Wstrict-prototypes -Wmissing-prototypes
Chris@4 35
Chris@4 36 # If cp.exe is available, replace "copy /Y" with "cp -fp" .
Chris@4 37 CP=copy /Y
Chris@4 38 # If gnu install.exe is available, replace $(CP) with ginstall.
Chris@4 39 INSTALL=$(CP)
Chris@4 40 # The default value of RM is "rm -f." If "rm.exe" is found, comment out:
Chris@4 41 RM=del
Chris@4 42 LDLIBS=-L. -lz
Chris@4 43 LD=$(CC) -s -o
Chris@4 44 LDSHARED=$(CC)
Chris@4 45
Chris@4 46 INCL=zlib.h zconf.h
Chris@4 47 LIBS=libz.a
Chris@4 48
Chris@4 49 AR=ar rcs
Chris@4 50
Chris@4 51 prefix=/usr/local
Chris@4 52 exec_prefix = $(prefix)
Chris@4 53
Chris@4 54 OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
Chris@4 55 uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
Chris@4 56
Chris@4 57 OBJA =
Chris@4 58 # to use the asm code: make OBJA=match.o
Chris@4 59
Chris@4 60 TEST_OBJS = example.o minigzip.o
Chris@4 61
Chris@4 62 all: example.exe minigzip.exe
Chris@4 63
Chris@4 64 check: test
Chris@4 65 test: all
Chris@4 66 ./example
Chris@4 67 echo hello world | .\minigzip | .\minigzip -d
Chris@4 68
Chris@4 69 %.o : %.c
Chris@4 70 $(CC) $(CFLAGS) -c $< -o $@
Chris@4 71
Chris@4 72 libz.a: $(OBJS) $(OBJA)
Chris@4 73 $(AR) $@ $(OBJS) $(OBJA)
Chris@4 74
Chris@4 75 %.exe : %.o $(LIBS)
Chris@4 76 $(LD) $@ $< $(LDLIBS)
Chris@4 77
Chris@4 78 # INCLUDE_PATH and LIBRARY_PATH were set for [make] in djgpp.env .
Chris@4 79
Chris@4 80 .PHONY : uninstall clean
Chris@4 81
Chris@4 82 install: $(INCL) $(LIBS)
Chris@4 83 -@if not exist $(INCLUDE_PATH)\nul mkdir $(INCLUDE_PATH)
Chris@4 84 -@if not exist $(LIBRARY_PATH)\nul mkdir $(LIBRARY_PATH)
Chris@4 85 $(INSTALL) zlib.h $(INCLUDE_PATH)
Chris@4 86 $(INSTALL) zconf.h $(INCLUDE_PATH)
Chris@4 87 $(INSTALL) libz.a $(LIBRARY_PATH)
Chris@4 88
Chris@4 89 uninstall:
Chris@4 90 $(RM) $(INCLUDE_PATH)\zlib.h
Chris@4 91 $(RM) $(INCLUDE_PATH)\zconf.h
Chris@4 92 $(RM) $(LIBRARY_PATH)\libz.a
Chris@4 93
Chris@4 94 clean:
Chris@4 95 $(RM) *.d
Chris@4 96 $(RM) *.o
Chris@4 97 $(RM) *.exe
Chris@4 98 $(RM) libz.a
Chris@4 99 $(RM) foo.gz
Chris@4 100
Chris@4 101 DEPS := $(wildcard *.d)
Chris@4 102 ifneq ($(DEPS),)
Chris@4 103 include $(DEPS)
Chris@4 104 endif