~peter-pearse/ubuntu/natty/unzip/prop001

« back to all changes in this revision

Viewing changes to os2/makefile.os2

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2009-05-08 20:02:40 UTC
  • mfrom: (1.1.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20090508200240-7l4gypruop5863bd
* New upstream release. Closes: #496989.
* Enabled new Unicode support. Closes: #197427. This may or may not work
  for your already created zipfiles, but it's not a bug unless they were
  created using the Unicode feature present in zip 3.0.
* Built using DATE_FORMAT=DF_YMD so that unzip -l show dates in ISO format,
  as that's the only available one which makes sense. Closes: #312886.
* Enabled new bzip2 support. Closes: #426798.
* Exit code for zipgrep should now be the right one. Closes: #441997.
* The reason why a file may not be created is now shown. Closes: #478791.
* Summary of changes in this version not being the debian/* files:
- Manpages in section 1, not 1L.
- Branding patch. UnZip by Debian. Original by Info-ZIP.
- Always #include <unistd.h>. Debian GNU/kFreeBSD needs it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for UnZip, UnZipSFX and fUnZip                     17 February 2002
 
1
# Makefile for UnZip, UnZipSFX and fUnZip                     03 January 2007
2
2
#
3
3
#  supported compilers:
4
4
#  - Microsoft C, version 6.00 or higher, for use under OS/2 1.x (16-bit)
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).
27
27
 
 
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
 
33
 
28
34
# Notes on Microsoft C 6.00 compilation for OS/2:
29
35
#
30
36
#   The resulting programs can be used under OS/2 protected mode only, not
78
84
        LDFLAGS2="-link /noe" \
79
85
        OUT="-Fo" \
80
86
        OBJ=".obj" \
81
 
        CRC32="crc_i86" \
82
 
        CRC32F="crc_i86" \
83
 
        CRC32X="crc_i86" \
 
87
        CRCA_O="crc_i86.obj" \
84
88
        OBJF2="os2f.obj" \
85
89
        DEF="os2\unzip.def"
86
90
 
97
101
        LDFLAGS2="-link /noe" \
98
102
        OUT="-Fo" \
99
103
        OBJ=".obj" \
100
 
        CRC32="crc_i86" \
101
 
        CRC32F="crc_i86" \
102
 
        CRC32X="crc_i86" \
 
104
        CRCA_O="crc_i86.obj" \
103
105
        OBJF2="os2f.obj" \
104
106
        DEF="os2\unzip.def"
105
107
 
117
119
        LDFLAGS2="-link /noe /exe" \
118
120
        OUT="-Fo" \
119
121
        OBJ=".obj" \
120
 
        CRC32="crc_i86" \
121
 
        CRC32F="crc_i86" \
122
 
        CRC32X="crc_i86" \
 
122
        CRCA_O="crc_i86" \
123
123
        OBJU2="msdos.obj" \
124
124
        OBJX2="msdos_.obj" \
125
125
        OBJF2="msdosf.obj" \
254
254
        LDFLAGS2="" \
255
255
        OUT="-Fo" \
256
256
        OBJ=".obj" \
257
 
        CRC32="crc_i386" \
258
 
        CRC32F="crc_i386" \
259
 
        CRC32X="crc_i386" \
 
257
        CRCA_O="crc_i386.obj" \
260
258
        DEF="" \
261
259
        DIRSEP="\\" \
262
260
        AS_DIRSEP="\\"
274
272
        LDFLAGS2="" \
275
273
        OUT="-Fo" \
276
274
        OBJ=".obj" \
277
 
        CRC32="crc_i86" \
278
 
        CRC32F="crc_i86" \
279
 
        CRC32X="crc_i86" \
 
275
        CRCA_O="crc_i86.obj" \
280
276
        OBJF2="os2f.obj" \
281
277
        DIRSEP="\\" \
282
278
        AS_DIRSEP="\\"
294
290
        LDFLAGS2="" \
295
291
        OUT="-Fo" \
296
292
        OBJ=".obj" \
297
 
        CRC32="crc_i386" \
298
 
        CRC32F="crc_i386" \
299
 
        CRC32X="crc_i386" \
 
293
        CRCA_O="crc_i386.obj" \
300
294
        OBJU2="msdos.obj" \
301
295
        OBJX2="msdos_.obj" \
302
296
        OSDEP_H="msdos/doscfg.h" \
316
310
        LDFLAGS2="" \
317
311
        OUT="-Fo" \
318
312
        OBJ=".obj" \
319
 
        CRC32="crc_i386" \
320
 
        CRC32F="crc_i386" \
321
 
        CRC32X="crc_i386" \
 
313
        CRCA_O="crc_i386.obj" \
322
314
        OBJU2="msdos.obj" \
323
315
        OBJX2="msdos_.obj" \
324
316
        OSDEP_H="msdos/doscfg.h" \
358
350
        LDFLAGS2="" \
359
351
        OUT="-Fo" \
360
352
        OBJ=".obj" \
361
 
        CRC32="crc_i386" \
362
 
        CRC32F="crc_i386" \
363
 
        CRC32X="crc_i386" \
 
353
        CRCA_O="crc_i386.obj" \
364
354
        OBJU2="win32.obj nt.obj" \
365
355
        OBJX2="win32_.obj nt_.obj" \
366
356
        OBJF2="win32f.obj" \
407
397
        LDFLAGS2="-Zsmall-conv -Zstack 320 -Zsys -s" \
408
398
        OUT="-o" \
409
399
        OBJ=".obj" \
410
 
        CRC32="crc_gcc" \
411
 
        CRC32F="crc_gcc" \
412
 
        CRC32X="crc_gcc" \
 
400
        CRCA_O="crc_gcc.obj" \
413
401
        DEF="os2/unzip.def"
414
402
 
415
403
# emx, gcc, OMF format, dynamically linked C runtime
425
413
        LDFLAGS2="-Zstack 320 -Zcrtdll -s" \
426
414
        OUT="-o" \
427
415
        OBJ=".obj" \
428
 
        CRC32="crc_gcc" \
429
 
        CRC32F="crc_gcc" \
430
 
        CRC32X="crc_gcc" \
 
416
        CRCA_O="crc_gcc.obj" \
431
417
        DEF="os2/unzip.def"
432
418
 
433
419
# emx, gcc, a.out format, with debug info for gdb
443
429
        LDFLAGS2="-Zsmall-conv" \
444
430
        OUT="-o" \
445
431
        OBJ=".o" \
446
 
        CRC32="crc_gcc" \
447
 
        CRC32F="crc_gcc" \
448
 
        CRC32X="crc_gcc"
 
432
        CRCA_O="crc_gcc.o" \
449
433
 
450
434
# emx, gcc, a.out format, cross-compilation for MS-DOS
451
435
gccdos:
460
444
        LDFLAGS2="-Zsmall-conv -s" \
461
445
        OUT="-o" \
462
446
        OBJ=".o" \
463
 
        CRC32="crc_gcc" \
464
 
        CRC32F="crc_gcc" \
465
 
        CRC32X="crc_gcc" \
 
447
        CRCA_O="crc_gcc.o" \
466
448
        OBJU2="msdos.o" \
467
449
        OBJX2="msdos_.o" \
468
450
        OSDEP_H="msdos/doscfg.h"
480
462
        LDFLAGS2="-ladvapi32 -Zsmall-conv -s" \
481
463
        OUT="-o" \
482
464
        OBJ=".o" \
483
 
        CRC32="crc_gcc" \
484
 
        CRC32F="crc_gcc" \
485
 
        CRC32X="crc_gcc" \
 
465
        CRCA_O="crc_gcc.o" \
486
466
        OBJU2="win32.o nt.o" \
487
467
        OBJX2="win32_.o nt_.o" \
488
468
        OBJF2="win32f.o" \
497
477
AS_DIRSEP = /
498
478
 
499
479
OSDEP_H = os2/os2data.h os2/os2cfg.h
500
 
CRC32   = crc32
501
 
CRC32F  = crc32f
502
 
CRC32X  = crc32_
 
480
CRCA_O  =
503
481
 
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)
516
494
OBJF2 =
517
495
 
551
529
# dependencies
552
530
 
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)
571
549
 
572
 
funzip$(OBJ):   funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h    # funzip only
573
 
        $(CC) -c $(CFLAGS) funzip.c
574
 
 
575
550
unzipstb$(OBJ): unzipstb.c                                      # DLL version
576
551
        $(CC) -c $(CFLAGS) unzipstb.c
577
552
 
630
605
        $(AS) $(ASFLAGS) -x assembler-with-cpp -c -o $@ crc_i386.S
631
606
 
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
635
610
 
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
 
614
 
 
615
crc32f$(OBJ):   crc32.c $(UNZIP_H) zip.h crc32.h
 
616
        $(CC) -c $(CFLAGS) -DFUNZIP $(OUT)$@ crc32.c
 
617
 
 
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
638
620
 
639
 
crc32f$(OBJ):   crc32.c $(UNZIP_H) zip.h                        # funzip only
640
 
        $(CC) -c $(CFLAGS) -DFUNZIP $(OUT)$@ crc32.c
641
 
 
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
644
623
 
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
647
626
 
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
650
629
 
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
653
633
 
654
 
crctab_$(OBJ):  crctab.c $(UNZIP_H) zip.h                       # unzipsfx only
655
 
        $(CC) -c $(CFLAGS) -DSFX $(OUT)$@ crctab.c
656
 
 
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
659
636
 
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
662
639
 
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
665
642
 
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
668
645
 
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
671
648
 
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
674
651
 
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
677
654
 
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
680
657
 
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
 
660
 
 
661
unzipsf_$(OBJ): unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
682
662
        $(CC) -c $(CFLAGS) -DSFX $(OUT)$@ unzip.c