25
25
# To use, enter "{d,n}make -f os2/makefile.os2" (this makefile depends on its
26
26
# name being "makefile.os2", and it must be in the os2 subdirectory).
28
# In case you want to use Watcom wmake instead, you have to switch wmake into
29
# the "MS nmake compatible" mode by specifying the "-ms" option. Additionally,
30
# it is required to override the MAKE macro definition for the recursive
31
# invokation of wmake. An example:
32
# wmake -ms -f os2/makefile.os2 MAKE="wmake -ms" watcom
28
34
# Notes on Microsoft C 6.00 compilation for OS/2:
30
36
# The resulting programs can be used under OS/2 protected mode only, not
499
479
OSDEP_H = os2/os2data.h os2/os2cfg.h
504
OBJU = unzip$(OBJ) $(CRC32)$(OBJ) crctab$(OBJ) crypt$(OBJ) envargs$(OBJ) \
482
OBJU = unzip$(OBJ) crc32$(OBJ) $(CRCA_O) crypt$(OBJ) envargs$(OBJ) \
505
483
explode$(OBJ) extract$(OBJ) fileio$(OBJ) globals$(OBJ) \
506
484
inflate$(OBJ) list$(OBJ) match$(OBJ) process$(OBJ) ttyio$(OBJ) \
507
unreduce$(OBJ) unshrink$(OBJ) zipinfo$(OBJ)
485
ubz2err$(OBJ) unreduce$(OBJ) unshrink$(OBJ) zipinfo$(OBJ)
508
486
OBJU2 = os2$(OBJ) os2acl$(OBJ)
509
OBJX = unzipsf_$(OBJ) $(CRC32X)$(OBJ) crctab_$(OBJ) crypt_$(OBJ) \
487
OBJX = unzipsf_$(OBJ) crc32_$(OBJ) $(CRCA_O) crypt_$(OBJ) \
510
488
extract_$(OBJ) fileio_$(OBJ) globals_$(OBJ) inflate_$(OBJ) \
511
match_$(OBJ) process_$(OBJ) ttyio_$(OBJ)
489
match_$(OBJ) process_$(OBJ) ttyio_$(OBJ) ubz2err_$(OBJ)
512
490
OBJX2 = os2_$(OBJ) os2acl_$(OBJ)
513
491
OBJDLL= api$(OBJ) apihelp$(OBJ) rexxhelp$(OBJ) rexxapi$(OBJ)
514
OBJF = funzip$(OBJ) $(CRC32F)$(OBJ) cryptf$(OBJ) inflatef$(OBJ) \
492
OBJF = funzip$(OBJ) crc32f$(OBJ) $(CRCA_O) cryptf$(OBJ) inflatef$(OBJ) \
515
493
globalsf$(OBJ) ttyiof$(OBJ)
553
531
apihelp$(OBJ): apihelp.c $(UNZIP_H) unzvers.h
554
crc32$(OBJ): crc32.c $(UNZIP_H) zip.h
555
crctab$(OBJ): crctab.c $(UNZIP_H) zip.h
532
crc32$(OBJ): crc32.c $(UNZIP_H) zip.h crc32.h
556
533
envargs$(OBJ): envargs.c $(UNZIP_H)
557
534
explode$(OBJ): explode.c $(UNZIP_H)
558
extract$(OBJ): extract.c $(UNZIP_H) crypt.h
559
fileio$(OBJ): fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
535
extract$(OBJ): extract.c $(UNZIP_H) crc32.h crypt.h
536
fileio$(OBJ): fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
560
537
globals$(OBJ): globals.c $(UNZIP_H)
561
538
inflate$(OBJ): inflate.c $(UNZIP_H)
562
539
list$(OBJ): list.c $(UNZIP_H)
563
540
match$(OBJ): match.c $(UNZIP_H)
564
process$(OBJ): process.c $(UNZIP_H)
541
process$(OBJ): process.c $(UNZIP_H) crc32.h
565
542
ttyio$(OBJ): ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
543
ubz2err$(OBJ): ubz2err.c $(UNZIP_H)
566
544
unreduce$(OBJ): unreduce.c $(UNZIP_H)
567
545
unshrink$(OBJ): unshrink.c $(UNZIP_H)
568
546
unzip$(OBJ): unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
569
547
api$(OBJ): api.c $(UNZIP_H) unzvers.h
570
548
zipinfo$(OBJ): zipinfo.c $(UNZIP_H)
572
funzip$(OBJ): funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h # funzip only
573
$(CC) -c $(CFLAGS) funzip.c
575
550
unzipstb$(OBJ): unzipstb.c # DLL version
576
551
$(CC) -c $(CFLAGS) unzipstb.c
630
605
$(AS) $(ASFLAGS) -x assembler-with-cpp -c -o $@ crc_i386.S
632
607
# NFLAGS are solely used as work-around for optimization bug in IBM C++ Set
633
crypt$(OBJ): crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
608
crypt$(OBJ): crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
634
609
$(CC) -c $(CFLAGS) $(DLLFLAG) $(NFLAGS) crypt.c
636
cryptf$(OBJ): crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only
611
# funzip compilation section
612
funzip$(OBJ): funzip.c $(UNZIP_H) crc32.h crypt.h ttyio.h
613
$(CC) -c $(CFLAGS) funzip.c
615
crc32f$(OBJ): crc32.c $(UNZIP_H) zip.h crc32.h
616
$(CC) -c $(CFLAGS) -DFUNZIP $(OUT)$@ crc32.c
618
cryptf$(OBJ): crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
637
619
$(CC) -c $(CFLAGS) $(NFLAGS) -DFUNZIP $(OUT)$@ crypt.c
639
crc32f$(OBJ): crc32.c $(UNZIP_H) zip.h # funzip only
640
$(CC) -c $(CFLAGS) -DFUNZIP $(OUT)$@ crc32.c
642
globalsf$(OBJ): globals.c $(UNZIP_H) # funzip only
621
globalsf$(OBJ): globals.c $(UNZIP_H)
643
622
$(CC) -c $(CFLAGS) -DFUNZIP $(OUT)$@ globals.c
645
inflatef$(OBJ): inflate.c inflate.h $(UNZIP_H) crypt.h # funzip only
624
inflatef$(OBJ): inflate.c inflate.h $(UNZIP_H) crypt.h
646
625
$(CC) -c $(CFLAGS) -DFUNZIP $(OUT)$@ inflate.c
648
ttyiof$(OBJ): ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only
627
ttyiof$(OBJ): ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
649
628
$(CC) -c $(CFLAGS) $(NFLAGS) -DFUNZIP $(OUT)$@ ttyio.c
651
crc32_$(OBJ): crc32.c $(UNZIP_H) zip.h # unzipsfx only
630
# unzipsfx compilation section
631
crc32_$(OBJ): crc32.c $(UNZIP_H) zip.h crc32.h
652
632
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ crc32.c
654
crctab_$(OBJ): crctab.c $(UNZIP_H) zip.h # unzipsfx only
655
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ crctab.c
657
crypt_$(OBJ): crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # unzipsfx only
634
crypt_$(OBJ): crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
658
635
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ crypt.c
660
extract_$(OBJ): extract.c $(UNZIP_H) crypt.h # unzipsfx only
637
extract_$(OBJ): extract.c $(UNZIP_H) crypt.h
661
638
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ extract.c
663
fileio_$(OBJ): fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h # unzipsfx only
640
fileio_$(OBJ): fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
664
641
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ fileio.c
666
globals_$(OBJ): globals.c $(UNZIP_H) # unzipsfx only
643
globals_$(OBJ): globals.c $(UNZIP_H)
667
644
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ globals.c
669
inflate_$(OBJ): inflate.c inflate.h $(UNZIP_H) crypt.h # unzipsfx only
646
inflate_$(OBJ): inflate.c inflate.h $(UNZIP_H) crypt.h
670
647
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ inflate.c
672
match_$(OBJ): match.c $(UNZIP_H) # unzipsfx only
649
match_$(OBJ): match.c $(UNZIP_H)
673
650
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ match.c
675
process_$(OBJ): process.c $(UNZIP_H) # unzipsfx only
652
process_$(OBJ): process.c $(UNZIP_H) crc32.h
676
653
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ process.c
678
ttyio_$(OBJ): ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # unzipsfx only
655
ttyio_$(OBJ): ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
679
656
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ ttyio.c
681
unzipsf_$(OBJ): unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h # unzipsfx only
658
ubz2err_$(OBJ): ubz2err.c $(UNZIP_H)
659
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ ubz2err.c
661
unzipsf_$(OBJ): unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
682
662
$(CC) -c $(CFLAGS) -DSFX $(OUT)$@ unzip.c