This commit was manufactured by cvs2svn to create branch 'gomp-branch'.
[official-gcc.git] / zlib / win32 / Makefile.bor
blobb802519ca352a16db5b20571cce4ef7d09fa590a
1 # Makefile for zlib
2 # Borland C++ for Win32
4 # Updated for zlib 1.2.x by Cosmin Truta, 11-Mar-2003
5 # Last updated: 28-Aug-2003
7 # Usage:
8 #  make -f win32/Makefile.bor
9 #  make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj
11 # ------------ Borland C++ ------------
13 # Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
14 # should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
15 # added to the declaration of LOC here:
16 LOC = $(LOCAL_ZLIB)
18 CC = bcc32
19 AS = bcc32
20 LD = bcc32
21 AR = tlib
22 CFLAGS  = -a -d -k- -O2 $(LOC)
23 ASFLAGS = $(LOC)
24 LDFLAGS = $(LOC)
27 # variables
28 ZLIB_LIB = zlib.lib
30 OBJ1  = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
31 OBJ2  = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
32 #OBJA =
33 OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
34 OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
35 #OBJPA=
38 # targets
39 all: $(ZLIB_LIB) example.exe minigzip.exe
41 .c.obj:
42         $(CC) -c $(CFLAGS) $<
44 .asm.obj:
45         $(AS) -c $(ASFLAGS) $<
47 adler32.obj: adler32.c zlib.h zconf.h
49 compress.obj: compress.c zlib.h zconf.h
51 crc32.obj: crc32.c zlib.h zconf.h crc32.h
53 deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
55 gzio.obj: gzio.c zutil.h zlib.h zconf.h
57 infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
58  inffast.h inffixed.h
60 inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
61  inffast.h
63 inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
64  inffast.h inffixed.h
66 inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
68 trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
70 uncompr.obj: uncompr.c zlib.h zconf.h
72 zutil.obj: zutil.c zutil.h zlib.h zconf.h
74 example.obj: example.c zlib.h zconf.h
76 minigzip.obj: minigzip.c zlib.h zconf.h
79 # For the sake of the old Borland make,
80 # the command line is cut to fit in the MS-DOS 128 byte limit:
81 $(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
82         -del $(ZLIB_LIB)
83         $(AR) $(ZLIB_LIB) $(OBJP1)
84         $(AR) $(ZLIB_LIB) $(OBJP2)
85         $(AR) $(ZLIB_LIB) $(OBJPA)
88 # testing
89 test: example.exe minigzip.exe
90         example
91         echo hello world | minigzip | minigzip -d
93 example.exe: example.obj $(ZLIB_LIB)
94         $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
96 minigzip.exe: minigzip.obj $(ZLIB_LIB)
97         $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
100 # cleanup
101 clean:
102         -del *.obj
103         -del *.lib
104         -del *.exe
105         -del *.tds
106         -del zlib.bak
107         -del foo.gz