Mercurial > hg > sv-dependency-builds
annotate src/zlib-1.2.7/old/Makefile.emx @ 23:619f715526df sv_v2.1
Update Vamp plugin SDK to 2.5
author | Chris Cannam |
---|---|
date | Thu, 09 May 2013 10:52:46 +0100 |
parents | e13257ea84a4 |
children |
rev | line source |
---|---|
Chris@4 | 1 # Makefile for zlib. Modified for emx/rsxnt by Chr. Spieler, 6/16/98. |
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.emx; make test -fmakefile.emx |
Chris@4 | 8 # |
Chris@4 | 9 |
Chris@4 | 10 CC=gcc -Zwin32 |
Chris@4 | 11 |
Chris@4 | 12 #CFLAGS=-MMD -O |
Chris@4 | 13 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 |
Chris@4 | 14 #CFLAGS=-MMD -g -DDEBUG |
Chris@4 | 15 CFLAGS=-MMD -O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ |
Chris@4 | 16 -Wstrict-prototypes -Wmissing-prototypes |
Chris@4 | 17 |
Chris@4 | 18 # If cp.exe is available, replace "copy /Y" with "cp -fp" . |
Chris@4 | 19 CP=copy /Y |
Chris@4 | 20 # If gnu install.exe is available, replace $(CP) with ginstall. |
Chris@4 | 21 INSTALL=$(CP) |
Chris@4 | 22 # The default value of RM is "rm -f." If "rm.exe" is found, comment out: |
Chris@4 | 23 RM=del |
Chris@4 | 24 LDLIBS=-L. -lzlib |
Chris@4 | 25 LD=$(CC) -s -o |
Chris@4 | 26 LDSHARED=$(CC) |
Chris@4 | 27 |
Chris@4 | 28 INCL=zlib.h zconf.h |
Chris@4 | 29 LIBS=zlib.a |
Chris@4 | 30 |
Chris@4 | 31 AR=ar rcs |
Chris@4 | 32 |
Chris@4 | 33 prefix=/usr/local |
Chris@4 | 34 exec_prefix = $(prefix) |
Chris@4 | 35 |
Chris@4 | 36 OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \ |
Chris@4 | 37 gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o |
Chris@4 | 38 |
Chris@4 | 39 TEST_OBJS = example.o minigzip.o |
Chris@4 | 40 |
Chris@4 | 41 all: example.exe minigzip.exe |
Chris@4 | 42 |
Chris@4 | 43 test: all |
Chris@4 | 44 ./example |
Chris@4 | 45 echo hello world | .\minigzip | .\minigzip -d |
Chris@4 | 46 |
Chris@4 | 47 %.o : %.c |
Chris@4 | 48 $(CC) $(CFLAGS) -c $< -o $@ |
Chris@4 | 49 |
Chris@4 | 50 zlib.a: $(OBJS) |
Chris@4 | 51 $(AR) $@ $(OBJS) |
Chris@4 | 52 |
Chris@4 | 53 %.exe : %.o $(LIBS) |
Chris@4 | 54 $(LD) $@ $< $(LDLIBS) |
Chris@4 | 55 |
Chris@4 | 56 |
Chris@4 | 57 .PHONY : clean |
Chris@4 | 58 |
Chris@4 | 59 clean: |
Chris@4 | 60 $(RM) *.d |
Chris@4 | 61 $(RM) *.o |
Chris@4 | 62 $(RM) *.exe |
Chris@4 | 63 $(RM) zlib.a |
Chris@4 | 64 $(RM) foo.gz |
Chris@4 | 65 |
Chris@4 | 66 DEPS := $(wildcard *.d) |
Chris@4 | 67 ifneq ($(DEPS),) |
Chris@4 | 68 include $(DEPS) |
Chris@4 | 69 endif |