f6bcfd974e
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
119 lines
3.1 KiB
Plaintext
119 lines
3.1 KiB
Plaintext
# Makefile for UnZip(SFX) and fUnZip for Borland C++ for Windows 95/NT
|
|
# Version: 5.4 and later Alvin Koh, Jim Knoble, Christian Spieler, etc.
|
|
# Adapted from the MS-DOS makefile by E-Yen Tan
|
|
#
|
|
# Last revised: 24 Nov 98
|
|
#
|
|
#
|
|
|
|
|
|
# Optional nonstandard preprocessor flags (as -DCHECK_EOF or -DDOS_WILD)
|
|
# should be added to the environment via "set LOCAL_UNZIP=-DFOO" or added
|
|
# to the declaration of LOC here:
|
|
LOC = $(LOCAL_UNZIP)
|
|
|
|
# Type for CPU required: 0: 8086, 1: 80186, 2: 80286, 3: 80386, etc.
|
|
CPU_TYP = 4
|
|
|
|
# (De)Select inclusion of optimized assembler CRC32 routine:
|
|
USE_ASMCRC = 0
|
|
|
|
# If you have bcc32i, you should define:
|
|
# CC = bcc32i
|
|
# This compiler generates a faster code.
|
|
CC = bcc32
|
|
AS = tasm32
|
|
|
|
!if $(USE_ASMCRC)
|
|
ASMFLG = -DASM_CRC
|
|
ASMOBJS = crc_i386.obj
|
|
!else
|
|
ASMFLG =
|
|
ASMOBJS =
|
|
!endif
|
|
|
|
!if $(UNCLEAN)
|
|
DIRT = -DUSE_SMITH_CODE -DUSE_UNSHRINK
|
|
!else
|
|
DIRT =
|
|
!endif
|
|
|
|
# compiler flags
|
|
|
|
ASCPUFLAG = __$(CPU_TYP)86
|
|
!if $(CPU_TYP) != 0
|
|
CC_CPUFLG = -$(CPU_TYP)
|
|
!endif
|
|
ASFLAGS = -ml -m2 -w0 -D$(ASCPUFLAG) $(LOC)
|
|
CFLAGS = -O2 -w- $(CC_CPUFLG) -ff- -k- -P-.C -I. -I.. -I..\inczip -DWIN32 $(ASMFLG) $(LOC) $(DIRT)
|
|
LDFLAGS = -lxncd -l-P # for bcc
|
|
UNFLAGS = $(CFLAGS)
|
|
|
|
# implicit rules
|
|
|
|
.asm.obj:
|
|
$(AS) $(ASFLAGS) $<
|
|
|
|
.c.obj:
|
|
$(CC) -c $(UNFLAGS) {$< }
|
|
|
|
# list macros
|
|
|
|
OBJU1 = unzip.obj crc32.obj crctab.obj crypt.obj envargs.obj explode.obj
|
|
OBJU2 = extract.obj fileio.obj globals.obj inflate.obj list.obj match.obj
|
|
OBJU3 = process.obj ttyio.obj unreduce.obj unshrink.obj zipinfo.obj
|
|
OBJUS = win32.obj nt.obj $(ASMOBJS) packinst.obj
|
|
OBJU = $(OBJU1) $(OBJU2) $(OBJU3) $(OBJUS)
|
|
|
|
UNZIP_H = ..\inczip\unzip.h ..\inczip\unzpriv.h ..\inczip\globals.h ..\inczip\w32cfg.h
|
|
|
|
# explicit rules
|
|
|
|
all: packinst.exe
|
|
|
|
packinst.exe: $(OBJU)
|
|
$(CC) $(LDFLAGS) -epackinst.exe @&&|
|
|
$(OBJU)
|
|
|
|
|
|
|
clean:
|
|
-erase *.obj
|
|
-erase *.exe
|
|
-erase *.res
|
|
-erase *.map
|
|
-erase *.rws
|
|
-erase *.tds
|
|
-erase *.il?
|
|
|
|
# individual file dependencies
|
|
|
|
crc32.obj: crc32.c $(UNZIP_H) ..\inczip\zip.h
|
|
crctab.obj: crctab.c $(UNZIP_H) ..\inczip\zip.h
|
|
crypt.obj: crypt.c $(UNZIP_H) ..\inczip\zip.h ..\inczip\crypt.h ..\inczip\ttyio.h
|
|
envargs.obj: envargs.c $(UNZIP_H)
|
|
explode.obj: explode.c $(UNZIP_H)
|
|
extract.obj: extract.c $(UNZIP_H) ..\inczip\crypt.h
|
|
fileio.obj: fileio.c $(UNZIP_H) ..\inczip\crypt.h ..\inczip\ttyio.h ..\inczip\ebcdic.h
|
|
globals.obj: globals.c $(UNZIP_H)
|
|
inflate.obj: inflate.c ..\inczip\inflate.h $(UNZIP_H)
|
|
list.obj: list.c $(UNZIP_H)
|
|
match.obj: match.c $(UNZIP_H)
|
|
process.obj: process.c $(UNZIP_H)
|
|
ttyio.obj: ttyio.c $(UNZIP_H) ..\inczip\zip.h ..\inczip\crypt.h ..\inczip\ttyio.h
|
|
unreduce.obj: unreduce.c $(UNZIP_H)
|
|
unshrink.obj: unshrink.c $(UNZIP_H)
|
|
unzip.obj: unzip.c $(UNZIP_H) ..\inczip\crypt.h ..\inczip\version.h ..\inczip\consts.h
|
|
zipinfo.obj: zipinfo.c $(UNZIP_H)
|
|
|
|
crc_i386.obj: crc_i386.asm
|
|
$(AS) $(ASFLAGS) crc_i386.asm, $*.obj ;
|
|
|
|
win32.obj: win32.c $(UNZIP_H)
|
|
$(CC) -c $(UNFLAGS) win32.c
|
|
|
|
packinst.obj: ..\packinst\packinst.c $(UNZIP_H)
|
|
$(CC) -c $(UNFLAGS) ..\packinst\packinst.c
|
|
|
|
nt.obj: nt.c $(UNZIP_H)
|
|
$(CC) -c $(UNFLAGS) nt.c
|