Lines 81-96
Link Here
|
81 |
OSDEP_H = |
81 |
OSDEP_H = |
82 |
|
82 |
|
83 |
# object files |
83 |
# object files |
84 |
OBJS1 = unzip$O $(CRC32)$O crctab$O crypt$O envargs$O explode$O |
84 |
OBJS1 = unzip$O $(CRC32)$O crctab$O crypt$O envargs$O explode$O convfn$O |
85 |
OBJS2 = extract$O fileio$O globals$O inflate$O list$O match$O |
85 |
OBJS2 = extract$O fileio$O globals$O inflate$O list$O match$O |
86 |
OBJS3 = process$O ttyio$O unreduce$O unshrink$O zipinfo$O |
86 |
OBJS3 = process$O ttyio$O unreduce$O unshrink$O zipinfo$O |
87 |
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $M$O |
87 |
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $M$O |
88 |
LOBJS = $(OBJS) |
88 |
LOBJS = $(OBJS) |
89 |
OBJSDLL = $(OBJS:.o=.pic.o) api.pic.o |
89 |
OBJSDLL = $(OBJS:.o=.pic.o) api.pic.o |
90 |
OBJX = unzipsfx$O $(CRC32)$O crctab_$O crypt_$O extract_$O fileio_$O \ |
90 |
OBJX = unzipsfx$O $(CRC32)$O crctab_$O crypt_$O extract_$O fileio_$O \ |
91 |
globals_$O inflate_$O match_$O process_$O ttyio_$O $M_$O |
91 |
globals_$O inflate_$O match_$O process_$O ttyio_$O convfn$O $M_$O |
92 |
LOBJX = $(OBJX) |
92 |
LOBJX = $(OBJX) |
93 |
OBJF = funzip$O $(CRC32)$O cryptf$O globalsf$O inflatef$O ttyiof$O |
93 |
OBJF = funzip$O $(CRC32)$O cryptf$O globalsf$O inflatef$O ttyiof$O convfn$O |
94 |
#OBJS_OS2 = $(OBJS1:.o=.obj) $(OBJS2:.o=.obj) os2.obj |
94 |
#OBJS_OS2 = $(OBJS1:.o=.obj) $(OBJS2:.o=.obj) os2.obj |
95 |
#OBJF_OS2 = $(OBJF:.o=.obj) |
95 |
#OBJF_OS2 = $(OBJF:.o=.obj) |
96 |
UNZIP_H = unzip.h unzpriv.h globals.h $(OSDEP_H) |
96 |
UNZIP_H = unzip.h unzpriv.h globals.h $(OSDEP_H) |
Lines 728-735
Link Here
|
728 |
freebsd: unix_make |
728 |
freebsd: unix_make |
729 |
@echo 'NOTE: use bsd target for non-Intel FreeBSD compiles (if any).' |
729 |
@echo 'NOTE: use bsd target for non-Intel FreeBSD compiles (if any).' |
730 |
$(MAKE) unzips CC=gcc LD=gcc AS=gcc\ |
730 |
$(MAKE) unzips CC=gcc LD=gcc AS=gcc\ |
731 |
CF="-O3 -Wall -I. -DASM_CRC -DUNIX -DBSD $(LOC)"\ |
731 |
CF="-O3 -Wall -I. -DASM_CRC -DUNIX -DBSD -D_USE_ICONV $(LOC)"\ |
732 |
AF="-Di386 $(AF)" CRC32=crc_gcc |
732 |
AF="-Di386 $(AF)" CRC32=crc_gcc LF2="-liconv $(LF2)" |
733 |
|
733 |
|
734 |
# Generic BSDish Unix gcc. ``The $(CFLAGS) only works with later versions of gcc; |
734 |
# Generic BSDish Unix gcc. ``The $(CFLAGS) only works with later versions of gcc; |
735 |
# you may have to use -O2 or $(CFLAGS) for earlier versions. I have no idea why |
735 |
# you may have to use -O2 or $(CFLAGS) for earlier versions. I have no idea why |
Lines 773-789
Link Here
|
773 |
linux: unix_make |
773 |
linux: unix_make |
774 |
@echo 'NOTE: use linux_noasm target for non-Intel Linux compiles.' |
774 |
@echo 'NOTE: use linux_noasm target for non-Intel Linux compiles.' |
775 |
$(MAKE) unzips CC=gcc LD=gcc AS=gcc\ |
775 |
$(MAKE) unzips CC=gcc LD=gcc AS=gcc\ |
776 |
CF="-O3 -Wall -I. -DASM_CRC $(LOC)"\ |
776 |
CF="-O3 -Wall -I. -DASM_CRC -D_USE_ICONV $(LOC)"\ |
777 |
AF="-Di386 $(AF)" CRC32=crc_gcc |
777 |
AF="-Di386 $(AF)" CRC32=crc_gcc |
778 |
# GRR: this echo is pointless; if user gets this far, no difference to install |
778 |
# GRR: this echo is pointless; if user gets this far, no difference to install |
779 |
# @echo 'Be sure to use the install_asm target rather than the install target' |
779 |
# @echo 'Be sure to use the install_asm target rather than the install target' |
780 |
|
780 |
|
781 |
linux_asm: linux |
781 |
linux_asm: linux |
782 |
|
782 |
|
783 |
# Linux (Posix, approximately SysV): virtually any version since before 0.96, |
783 |
# Linux (Posix, approximately SysV): virtually any version since before 0.96, |
784 |
# for any platform. Change "-O" to "-O3" or whatever, as desired... |
784 |
# for any platform. Change "-O" to "-O3" or whatever, as desired... |
785 |
linux_noasm: unix_make |
785 |
linux_noasm: unix_make |
786 |
$(MAKE) unzips CC=gcc LD=gcc CF="-O -Wall -I. $(LOC)" |
786 |
$(MAKE) unzips CC=gcc LD=gcc CF="-O -Wall -I. -D_USE_ICONV $(LOC)" |
787 |
|
787 |
|
788 |
# Linux with lcc compiler: __inline__ (stat.h) not recognized, and must edit |
788 |
# Linux with lcc compiler: __inline__ (stat.h) not recognized, and must edit |
789 |
# /usr/include/gnu/types.h to get rid of "long long" if __LCC__ defined. -O3 |
789 |
# /usr/include/gnu/types.h to get rid of "long long" if __LCC__ defined. -O3 |