78
MAKEF = -f unix/Makefile
76
80
# Version info for unix/unix.c
77
81
HOST_VERSINFO=-DIZ_CC_NAME='\"\$$(CC) \"' -DIZ_OS_NAME='\"`uname -a`\"'
79
83
# defaults for crc32 stuff and system dependent headers
85
OSDEP_H = unix/unxcfg.h
86
# default for dependency on auto-configure result, is an empty symbol
87
# so that the static non-autoconfigure targets continue to work
90
# optional inclusion of bzip2 decompression
91
IZ_OUR_BZIP2_DIR = bzip2
92
IZ_BZIP2 = $(IZ_OUR_BZIP2_DIR)
93
## The following symbols definitions need to be set to activate bzip2 support:
94
#D_USE_BZ2 = -DUSE_BZIP2
96
#LIBBZ2 = $(IZ_BZIP2)/libbz2.a
98
# defaults for unzip's "built-in" bzip2 library compilation
100
CFLAGS_BZ = $(CFLAGS)
84
OBJS1 = unzip$O $(CRC32)$O crctab$O crypt$O envargs$O explode$O
103
OBJS1 = unzip$O crc32$O $(CRCA_O) crypt$O envargs$O explode$O
85
104
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
105
OBJS3 = process$O ttyio$O ubz2err$O unreduce$O unshrink$O zipinfo$O
87
106
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $M$O
89
108
OBJSDLL = $(OBJS:.o=.pic.o) api.pic.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
109
OBJX = unzipsfx$O crc32_$O $(CRCA_O) crypt_$O extract_$O fileio_$O \
110
globals_$O inflate_$O match_$O process_$O ttyio_$O ubz2err_$O $M_$O
93
OBJF = funzip$O $(CRC32)$O cryptf$O globalsf$O inflatef$O ttyiof$O
112
OBJF = funzip$O crc32$O $(CRCA_O) cryptf$O globalsf$O inflatef$O ttyiof$O
94
113
#OBJS_OS2 = $(OBJS1:.o=.obj) $(OBJS2:.o=.obj) os2.obj
95
114
#OBJF_OS2 = $(OBJF:.o=.obj)
96
UNZIP_H = unzip.h unzpriv.h globals.h $(OSDEP_H)
115
UNZIP_H = unzip.h unzpriv.h globals.h $(OSDEP_H) $(ACONF_DEP)
99
118
# (probably can change next two to `install' and `install -d' if you have it)
146
" If you're not sure about the characteristics of your system, try typing"
148
' "make generic". If the compiler barfs and says something unpleasant about'
150
' "timezone redefined," try typing "make clean" followed by "make generic2".'
152
' If, on the other hand, it complains about an undefined symbol _ftime, try'
154
' typing "make clean" followed by "make generic3". One of these actions'
156
' should produce a working copy of unzip on most Unix systems. If you know'
158
' a bit more about the machine on which you work, you might try "make list"'
160
' for a list of the specific systems supported herein. (Many of them do'
162
" exactly the same thing, so don't agonize too much over which to pick if"
164
' two or more sound equally likely.) Also check out the INSTALL file for'
166
' notes on compiling various targets. As a last resort, feel free to read'
168
' the numerous comments within the Makefile itself.'
170
' Have a mostly pretty good day.'
165
@echo " If you're not sure about the characteristics of your system, try typing"
166
@echo " \"make generic\". This is new and uses the configure script, though it is"
167
@echo " still being worked on."
169
@echo " If that does not do it, try the original generic which is \"make generic1\"."
171
@echo " If the compiler barfs and says something unpleasant about \"timezone redefined\","
172
@echo " try typing \"make clean\" followed by \"make generic2\". If, on the other"
173
@echo " hand, it complains about an undefined symbol _ftime, try typing \"make clean\""
174
@echo " followed by \"make generic3\"."
176
@echo " One of these actions should produce a working copy of unzip on most Unix"
177
@echo " systems. If you know a bit more about the machine on which you work, you"
178
@echo " might try \"make list\" for a list of the specific systems supported herein."
179
@echo " (Many of them do exactly the same thing, so don't agonize too much over"
180
@echo " which to pick if two or more sound equally likely.) Also check out the"
181
@echo " INSTALL file for notes on compiling various targets. As a last resort,"
182
@echo " feel free to read the numerous comments within the Makefile itself."
184
@echo " Have a mostly pretty good day."
282
297
' or else invoke as "unzip -Z" (in a batch file, for example).'
283
298
$(LN) unzip$E zipinfo$E
286
crc32$O: crc32.c $(UNZIP_H) zip.h
287
crctab$O: crctab.c $(UNZIP_H) zip.h
288
crypt$O: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
300
# when the optional bzip2 support is provided (as recommended) by sources
301
# in the 'bzip2' subdirectory, create/update the library:
302
$(IZ_OUR_BZIP2_DIR)/libbz2.a:
303
@echo "Building/updating bzip2 object library..."
304
( cd $(IZ_OUR_BZIP2_DIR) ; $(MAKE) -f Makebz2.iz CC="$(CC_BZ)"\
305
CFLAGS="$(CFLAGS_BZ)" RM="rm -f" )
308
crc32$O: crc32.c $(UNZIP_H) zip.h crc32.h
309
crypt$O: crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
289
310
envargs$O: envargs.c $(UNZIP_H)
290
311
explode$O: explode.c $(UNZIP_H)
291
extract$O: extract.c $(UNZIP_H) crypt.h
292
fileio$O: fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
293
funzip$O: funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h
312
extract$O: extract.c $(UNZIP_H) crc32.h crypt.h
313
fileio$O: fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
314
funzip$O: funzip.c $(UNZIP_H) crc32.h crypt.h ttyio.h
294
315
globals$O: globals.c $(UNZIP_H)
295
316
inflate$O: inflate.c inflate.h $(UNZIP_H)
296
317
list$O: list.c $(UNZIP_H)
297
318
match$O: match.c $(UNZIP_H)
298
process$O: process.c $(UNZIP_H)
319
process$O: process.c $(UNZIP_H) crc32.h
299
320
ttyio$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
321
ubz2err$O: ubz2err.c $(UNZIP_H)
300
322
unreduce$O: unreduce.c $(UNZIP_H)
301
323
unshrink$O: unshrink.c $(UNZIP_H)
302
324
unzip$O: unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
303
325
zipinfo$O: zipinfo.c $(UNZIP_H)
305
unzipsfx$O: unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h # unzipsfx only
306
-$(CP) unzip.c unzipsfx.c
307
$(CC) -c $(CF) -DSFX unzipsfx.c
310
crctab_$O: crctab.c $(UNZIP_H) zip.h
311
-$(CP) crctab.c crctab_.c
312
$(CC) -c $(CF) -DSFX crctab_.c
315
crypt_$O: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # unzipsfx only
316
-$(CP) crypt.c crypt_.c
317
$(CC) -c $(CF) -DSFX crypt_.c
320
extract_$O: extract.c $(UNZIP_H) crypt.h # unzipsfx only
321
-$(CP) extract.c extract_.c
322
$(CC) -c $(CF) -DSFX extract_.c
325
fileio_$O: fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
326
-$(CP) fileio.c fileio_.c
327
$(CC) -c $(CF) -DSFX fileio_.c
330
globals_$O: globals.c $(UNZIP_H) # unzipsfx only
331
-$(CP) globals.c globals_.c
332
$(CC) -c $(CF) -DSFX globals_.c
335
inflate_$O: inflate.c inflate.h $(UNZIP_H) crypt.h # unzipsfx only
336
-$(CP) inflate.c inflate_.c
337
$(CC) -c $(CF) -DSFX inflate_.c
340
match_$O: match.c $(UNZIP_H) # unzipsfx only
341
-$(CP) match.c match_.c
342
$(CC) -c $(CF) -DSFX match_.c
345
process_$O: process.c $(UNZIP_H) # unzipsfx only
346
-$(CP) process.c process_.c
347
$(CC) -c $(CF) -DSFX process_.c
350
ttyio_$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # unzipsfx only
351
-$(CP) ttyio.c ttyio_.c
352
$(CC) -c $(CF) -DSFX ttyio_.c
356
cryptf$O: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only
357
-$(CP) crypt.c cryptf.c
358
$(CC) -c $(CF) -DFUNZIP cryptf.c
361
globalsf$O: globals.c $(UNZIP_H) # funzip only
362
-$(CP) globals.c globalsf.c
363
$(CC) -c $(CF) -DFUNZIP globalsf.c
366
inflatef$O: inflate.c inflate.h $(UNZIP_H) crypt.h # funzip only
367
-$(CP) inflate.c inflatef.c
368
$(CC) -c $(CF) -DFUNZIP inflatef.c
371
ttyiof$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only
372
-$(CP) ttyio.c ttyiof.c
373
$(CC) -c $(CF) -DFUNZIP ttyiof.c
327
# unzipsfx compilation section
328
unzipsfx$O: unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
329
$(CC) -c $(CF) -DSFX -o $@ unzip.c
331
crc32_$O: crc32.c $(UNZIP_H) zip.h crc32.h
332
$(CC) -c $(CF) -DSFX -o $@ crc32.c
334
crypt_$O: crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
335
$(CC) -c $(CF) -DSFX -o $@ crypt.c
337
extract_$O: extract.c $(UNZIP_H) crc32.h crypt.h
338
$(CC) -c $(CF) -DSFX -o $@ extract.c
340
fileio_$O: fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
341
$(CC) -c $(CF) -DSFX -o $@ fileio.c
343
globals_$O: globals.c $(UNZIP_H)
344
$(CC) -c $(CF) -DSFX -o $@ globals.c
346
inflate_$O: inflate.c inflate.h $(UNZIP_H) crypt.h
347
$(CC) -c $(CF) -DSFX -o $@ inflate.c
349
match_$O: match.c $(UNZIP_H)
350
$(CC) -c $(CF) -DSFX -o $@ match.c
352
process_$O: process.c $(UNZIP_H) crc32.h
353
$(CC) -c $(CF) -DSFX -o $@ process.c
355
ttyio_$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
356
$(CC) -c $(CF) -DSFX -o $@ ttyio.c
358
ubz2err_$O: ubz2err.c $(UNZIP_H)
359
$(CC) -c $(CF) -DSFX -o $@ ubz2err.c
362
# funzip compilation section
363
cryptf$O: crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
364
$(CC) -c $(CF) -DFUNZIP -o $@ crypt.c
366
globalsf$O: globals.c $(UNZIP_H)
367
$(CC) -c $(CF) -DFUNZIP -o $@ globals.c
369
inflatef$O: inflate.c inflate.h $(UNZIP_H) crypt.h
370
$(CC) -c $(CF) -DFUNZIP -o $@ inflate.c
372
ttyiof$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
373
$(CC) -c $(CF) -DFUNZIP -o $@ ttyio.c
377
376
# optional assembler replacements
378
377
crc_i86$O: msdos/crc_i86.asm # 16bit only
379
378
$(AS) $(AF) msdos/crc_i86.asm $(ASEOL)
381
crc_gcc$O: crc_i386.S # 32bit, GNU AS
382
$(AS) $(AF) -x assembler-with-cpp -c -o $@ crc_i386.S
384
crc_gcc.pic.o: crc_i386.S # 32bit, GNU AS
385
$(AS) $(AF) -x assembler-with-cpp -c -o $@ crc_i386.S
387
crc_sysv$O: crc_i386.S # 32bit, SysV AS
380
crc_gcc$O: crc_i386.S $(ACONF_DEP) # 32bit, GNU AS
381
$(AS) $(AF) -x assembler-with-cpp -c -o $@ crc_i386.S
383
crc_gcc.pic.o: crc_i386.S $(ACONF_DEP) # 32bit, GNU AS
384
$(AS) $(AF) -x assembler-with-cpp -c -o $@ crc_i386.S
386
crc_sysv$O: crc_i386.S $(ACONF_DEP) # 32bit, SysV AS
388
387
$(CC) -E $(AF) crc_i386.S > crc_i386s.s
389
388
$(AS) -o $@ crc_i386s.s
390
389
$(RM) crc_i386s.s
534
536
################################
536
538
#----------------------------------------------------------------------------
537
# Generic targets (can't assume make utility groks "$(MAKE)")
538
#----------------------------------------------------------------------------
540
generic: unzips # first try if unknown
539
# Generic targets using the configure script to determine configuration.
540
#----------------------------------------------------------------------------
542
# Well, try MAKE and see. By now everyone may be happy. 10/28/04 EG
543
generic: flags # now try autoconfigure first
544
eval $(MAKE) $(MAKEF) unzips ACONF_DEP=flags `cat flags`
545
# make $(MAKEF) unzips CF="${CF} `cat flags`"
548
$(MAKE) $(MAKEF) generic CC=gcc IZ_BZIP2="$(IZ_BZIP2)"
550
# extensions to perform SVR4 package-creation after compilation
551
generic_pkg: generic svr4package
552
generic_gccpkg: generic_gcc svr4package
554
#----------------------------------------------------------------------------
555
# Old static generic targets (can't assume make utility groks "$(MAKE)")
556
#----------------------------------------------------------------------------
558
generic1: unzips # first try if unknown
542
560
generic2: unix_make # second try if unknown: hope make is called "make"
543
make -f unix/Makefile unzips CF="$(CF) -DBSD"
561
make $(MAKEF) unzips CF="$(CF) -DBSD"
545
563
generic3: unix_make # third try if unknown: hope make is called "make"
546
make -f unix/Makefile unzips CF="$(CF) -DSYSV"
564
make $(MAKEF) unzips CF="$(CF) -DSYSV"
566
# Generic build including bzip2 decompression support for unzip.
567
# Requires presence of the bzip2 sources in subdirectory bzip2.
569
generic_bz2: unix_make
571
"This target assumes bzip2 sources are available in subfolder bzip2/."
572
$(MAKE) $(MAKEF) unzips D_USE_BZ2="-DUSE_BZIP2"\
573
L_BZ2="-lbz2" LIBBZ2="$(IZ_OUR_BZIP2_DIR)/libbz2.a" \
574
CC_BZ="$(CC)" CFLAGS_BZ="$(CFLAGS)"
548
576
# Generic unzip and funzip target using either shared or static zlib for
549
577
# inflate rather than the original UnZip version. (libz was libgz prior
668
704
# Amdahl (IBMish) mainframe, UTS (SysV) 1.2.4, 2.0.1, 3.x
669
705
amdahl: unix_make
670
$(MAKE) unzips CF="$(CF) -DSYSV -DNO_UID_GID"
706
$(MAKE) unzips CF="$(CF) -DSYSV -DNO_UID_GID -DNO_LCHOWN -DNO_LCHMOD"
672
708
# Amdahl UTS 2.1.4 with "extended file types" filesystem (aarrrggghhhh...)
673
709
amdahl_eft: unix_make
674
$(MAKE) unzips CF="$(CF) -eft -DSYSV -DNO_UID_GID"
710
$(MAKE) unzips CF="$(CF) -eft -DSYSV -DNO_UID_GID -DNO_LCHOWN -DNO_LCHMOD"
676
712
# Apollo Domain/OS machines (added -D...SOURCE options) [Gordon Fox, 960810]
677
713
apollo: unix_make
678
$(MAKE) unzips CF="$(CF) -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE"
714
$(MAKE) unzips CF="$(CF) -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE -DNO_LCHOWN -DNO_LCHMOD"
680
716
# BSDI BSD/OS on 386 platform, using the assembler replacement for crc32.c
682
718
@echo 'NOTE: use bsdi_noasm target for non-Intel BSD/OS compiles.'
683
719
$(MAKE) unzips CC=gcc2 LD=shlicc2 AS=gcc2\
684
CF="-O3 -Wall -I. -DASM_CRC -DUNIX -DBSD $(LOC)" CRC32=crc_gcc
720
CFLAGS="-O3 -Wall -DASM_CRC -DBSD" CRCA_O=crc_gcc$O
687
723
bsdi_noasm: unix_make
688
724
# @echo 'NOTE: use bsd target for non-Intel BSD/OS compiles.'
689
725
$(MAKE) unzips CC=gcc2 LD=shlicc2 AS=gcc2\
690
CF="-O3 -Wall -I. -DUNIX -DBSD $(LOC)"
726
CFLAGS="-O3 -Wall -DBSD"
692
728
# Coherent 3.x/4.x, Mark Williams C. ``For Coherent's CC, it needs either
693
729
# -T0 or -T150000 (or bigger) added to the CFLAGS, otherwise the compiler
694
730
# runs out of memory and dies in zipinfo.c.'' [Fred "Fredex" Smith, 940719]
695
731
coherent: unix_make
696
$(MAKE) unzips CF="$(CF) -T0"
732
$(MAKE) unzips CFLAGS="$(CFLAGS) -T0 -DNO_LCHOWN -DNO_LCHMOD"
698
734
# Cray-2, Y-MP or C90, running Unicos 5.x to 8.x (SysV + BSD enhancements)
699
735
# and Standard (ANSI) C compiler 3.0 or later.
700
736
cray_opt: unix_make
701
$(MAKE) unzips CF="$(CF) -h scalar3 -h vector3"
737
$(MAKE) unzips CFLAGS="$(CFLAGS) -h scalar3 -h vector3 -DNO_LCHOWN -DNO_LCHMOD"
703
739
# The unzip41 build on a Cyber 910/SGI running Irix v3.3.3 was successful
704
740
# with the following change to Makefile:
705
741
cyber_sgi: unix_make
706
$(MAKE) unzips CF="$(CF) -I/usr/include/bsd"\
742
$(MAKE) unzips CFLAGS="$(CFLAGS) -I/usr/include/bsd -DNO_LCHOWN -DNO_LCHMOD"\
707
743
LF="-lbsd $(LF)" SL="-lbsd $(SL)"
709
745
# The Cygwin environment on a Win32 system, treated as an UNIX emulator.
739
775
# with "echo" instead).
742
$(MAKE) unzips CC=gcc LD=gcc CF="-O3 -I. $(LOC)" LF2=""
778
$(MAKE) unzips CC=gcc LD=gcc CFLAGS="-O3" LF2=""
743
779
$(STRIP) $(UNZIPS)
745
781
# Heurikon HK68 (68010), UniPlus+ System V 5.0, Green Hills C-68000
747
783
$(MAKE) unzips CC="gcc" LD="gcc"\
748
784
LF="-n $(LF)" SL="-n $(SL)" FL="-n $(FL)"\
749
CF="-ga -X138 -I. $(LOC) -Dlocaltime=localti -Dtimezone=timezon"
785
CFLAGS="-ga -X138 -Dlocaltime=localti -Dtimezone=timezon"
751
787
# ISC Unix on 386 platform
753
$(MAKE) unzips LF2="-lc_s $(LF2)" CRC32=crc_sysv \
754
CF="-O -I. -DASM_CRC -DSYSV -DNO_UID_GID -DNEED_PTEM $(LOC)" \
789
$(MAKE) unzips LF2="-lc_s $(LF2)" CRCA_O=crc_sysv$O \
790
CFLAGS="-O" LOC="-DASM_CRC -DSYSV -DNO_UID_GID -DNEED_PTEM -DNO_LCHOWN -DNO_LCHMOD $(LOC)" \
755
791
AF="-DNO_UNDERLINE -Djecxz=jcxz -DALIGNMENT='.align 16' $(AF)"
757
793
isc_gcc: unix_make
758
$(MAKE) unzips AS=gcc CC=gcc LD=gcc CRC32=crc_gcc LF="-shlib $(LF)" \
759
SL="-shlib $(SL)" FL="-shlib $(FL)" \
760
LF2="" CF="-O3 -I. -DSYSV -DASM_CRC -DNO_UID_GID -DNEED_PTEM $(LOC)" \
794
$(MAKE) unzips AS=gcc CC=gcc LD=gcc CRCA_O=crc_gcc$O \
795
LF="-shlib $(LF)" SL="-shlib $(SL)" FL="-shlib $(FL)" LF2="" \
796
CFLAGS="-O3" LOC="-DSYSV -DASM_CRC -DNO_UID_GID -DNEED_PTEM -DNO_LCHOWN -DNO_LCHMOD $(LOC)" \
761
797
AF="-DNO_UNDERLINE -Djecxz=jcxz -DALIGNMENT='.align 16' $(AF)"
762
798
$(STRIP) $(UNZIPS)
764
800
# "ISI machine (68025 CPU)" (based on e-mail from Rob White <rsw@tfs.com>;
765
801
# no further information). May also need DIRENT defined.
767
$(MAKE) unzips CF="$(CF) -DDECLARE_ERRNO"
803
$(MAKE) unzips CF="$(CF) -DDECLARE_ERRNO -DNO_LCHOWN -DNO_LCHMOD"
769
805
# Linux on 386 platform, using the assembler replacement for crc32.c. (-O4 and
770
806
# -fno-strength-reduce have virtually no effect beyond -O3. Add "-m486
879
915
# NeXT 3.x: as above, plus better optimization.
880
916
next3x: unix_make
881
$(MAKE) unzips CF="-O2 -I. $(LOC)" LF2="-object -s"
917
$(MAKE) unzips CFLAGS="-O2" LF2="-object -s"
883
919
# NeXT 3.1+: make the executable fat (multi-architecture binary [MAB],
884
920
# for "black" [NeXT] and "white" [x86] hardware, so far).
885
921
nextfat: unix_make
886
$(MAKE) unzips CF="-O2 -I. $(LOC) -arch i386 -arch m68k" \
922
$(MAKE) unzips CFLAGS="-O2 -arch i386 -arch m68k" \
887
923
LF2="-arch i386 -arch m68k -object -s"
889
925
# IBM OS/390 (formerly MVS) compiled under "OpenEdition" shell
892
$(MAKE) -f unix/Makefile unzips \
928
$(MAKE) $(MAKEF) unzips \
893
929
CC=c89 LD="\$$(CC) -Wl,EDIT=NO" \
894
930
CF="$(CF) -DSYSV -DUNIX -DOS390 -DEBCDIC -DNO_PARAM_H \
931
-DNO_LCHOWN -DNO_LCHMOD \
895
932
-D_ALL_SOURCE $(HOST_VERSINFO)" LF2=""
897
934
# Sequent Symmetry running Dynix/ptx (sort of SysV.3): needs to link
898
935
# with libseq to get symlink().
900
$(MAKE) unzips CF="$(CF) -DSYSV -DTERMIO -DPTX" LF2="$(LF2) -lseq"
937
$(MAKE) unzips CF="$(CF) -DSYSV -DTERMIO -DPTX -DNO_LCHOWN -DNO_LCHMOD" LF2="$(LF2) -lseq"
902
939
# Pyramid 90X (probably all) under >= OSx4.1, either universe. (This is an
903
940
# experimental target! If it fails, use either pyr_ucb or pyr_att instead.)
904
941
# The make in the BSD half is too stupid to understand $(MAKE), sigh...
905
942
pyramid: unix_make
906
-make -f unix/Makefile pyr_`universe`
943
-make $(MAKEF) pyr_`universe`
908
945
# QNX/Neutrino is "special" because you don't have any native development
909
946
# tools yet. Set ARCH to "x86", "ppcbe", "ppcle", "mipsbe", or "mipsle"
949
986
# SCO Xenix/286 2.2.3 or later with development system 2.2.1 or later
950
987
sco_x286: unix_make
951
$(MAKE) unzips CF="$(CF) -Mel2 -LARGE -DNO_MKDIR" \
988
$(MAKE) unzips CF="$(CF) -Mel2 -LARGE -DNO_MKDIR -DNO_LCHOWN -DNO_LCHMOD" \
952
989
LF="$(LF) -Mel2 -LARGE -lx" SL="$(SL) -Mel2 -LARGE" \
953
990
FL="$(FL) -Mel2 -LARGE"
955
992
# Sequent Symmetry with Dynix. (386, but needs -DZMEM)
956
993
# This should also work on Balance but I can't test it just yet.
957
994
sequent: unix_make
958
$(MAKE) unzips CF="$(CF) -DBSD -DZMEM"
995
$(MAKE) unzips CF="$(CF) -DBSD -DZMEM -DNO_LCHOWN -DNO_LCHMOD"
960
997
# Sun 2, 3, 4 running SunOS 3.x
961
998
sunos3: unix_make
962
$(MAKE) unzips CF="$(CF) -DNO_UID_GID -DUID_USHORT"
999
$(MAKE) unzips CF="$(CF) -DNO_UID_GID -DUID_USHORT -DNO_LCHOWN -DNO_LCHMOD"
964
1001
# Generic System V + GNU C
965
1002
sysv_gcc: unix_make
966
$(MAKE) unzips CC=gcc LD=gcc CF="-O2 -I. -DUNIX -DSYSV $(LOC)" LF2=""
1003
$(MAKE) unzips CC=gcc LD=gcc CFLAGS="-O2 -DSYSV" LF2=""
967
1004
$(STRIP) $(UNZIPS)
969
1006
# AT&T 6300+, System V.2 Unix: run-time out-of-memory error if don't use -Ml;
970
1007
# also compile-time error if work arrays dimensioned at HSIZE+2 (>32K)
971
1008
sysv6300: unix_make
972
$(MAKE) unzips CF="$(CF) -Ml -DSYSV" LF="$(LF) -Ml"\
1009
$(MAKE) unzips CF="$(CF) -Ml -DSYSV -DNO_LCHOWN -DNO_LCHMOD" LF="$(LF) -Ml"\
973
1010
SL="$(SL) -Ml" FL="$(FL) -Ml"
975
1012
# Texas Instruments System V.3 (running on HP 9000-1500)
976
1013
ti_sysv: unix_make
977
$(MAKE) unzips CF="$(CF) -DSYSV -DNO_UID_GID -DUID_USHORT"
1014
$(MAKE) unzips CF="$(CF) -DSYSV -DNO_UID_GID -DUID_USHORT -DNO_LCHOWN -DNO_LCHMOD"
979
1016
# SCO Xenix (Joe Foster 950508: "unzip needs to be linked with -lx [for the
980
1017
# opendir(), readdir(), telldir(), rewinddir(), and closedir() calls]")