home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703A.ISO / OLS / Os2 / LHA2P205 / LHA2P205.LZH / lha2-2.05pre / source.lzh / src / Makefile < prev    next >
Makefile  |  1996-02-25  |  3KB  |  94 lines

  1. #
  2. # Makefile for IBM VisualAge C++ J3.0
  3. # This version is LHA 2.02b+2.11 Release 2.05pre.
  4. # (NOT supported self-extract option)
  5. #
  6. FIRST = #-DFIRST_COMPILATION
  7. DEFS = -D__SUPPORT_HPFS__ -D__SUPPORT_EA__ -D__SUPPORT_GID_UID__ \
  8. -D__SUPPORT_CTIME_ATIME__ -DLITTLE_ENDIAN $(FIRST)
  9. WARNING = -W3 -Wpor -Wrea -Wret -Wund
  10. CCDEBUG = -Ti -Tm -Tx -D__DEBUG__ -De_malloc=malloc -De_realloc=realloc
  11. # LDDEBUG = -de
  12.  
  13. CC = icc
  14. CFLAGS = -c -G4 -Gl -O -J -q -Sn -Sp4 -Ss $(DEFS) $(WARNING) -Fo$@
  15. # CFLAGS = -c -G4 -Gl -J -q -Sn -Sp4 -Ss $(DEFS) $(CCDEBUG) $(WARNING) -Fo$@
  16. LD = ilink
  17. LDFLAGS = -nologo -e:1 -optf -noi -noe -a:32 -pm:vio $(LDDEBUG)
  18. INSTALLPROG = ginstall
  19.  
  20. installdir = c:/usr/local/bin
  21.  
  22. # common objects
  23. OBJ1 = mn.o files.o match.o util.o header.o getopt.o list.o \
  24. append.o extract.o dosio.o error.o path.o #security.o
  25.  
  26. # for C version (2.02b+2.11)
  27. OBJ2 = slide.o huf.o dhuf.o maketree.o maketbl.o crcio.o \
  28. larc.o shuf.o disp.o
  29.  
  30. # for error messege objects
  31. OBJ3 = mes_j.o mes_e.o
  32.  
  33. # for usage messege objects
  34. # If first compilation (you have not LHA for OS/2), remove next line.
  35. OBJ4 = use_j.o use_e.o
  36.  
  37. # for porting objects
  38. OBJ5 = port2.o
  39.  
  40. # all objects
  41. OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5)
  42.  
  43. .c.o:
  44.     $(CC) $(CFLAGS) $<
  45.  
  46. lha.exe: $(OBJS) lha.def
  47.     $(LD) $(LDFLAGS) -o:$@ $(OBJS) lha.def
  48.  
  49. use_j.c: use_j.txt lzh2c.exe
  50.     @rm -f use_j.lzh
  51.     lha a -n2 use_j use_j.txt
  52.     lzh2c use_j.lzh use_j.c
  53.  
  54. use_e.c: use_e.txt lzh2c.exe
  55.     @rm -f use_e.lzh
  56.     lha a -n2 use_e use_e.txt
  57.     lzh2c use_e.lzh use_e.c
  58.  
  59. lzh2c.exe : lzh2c.c
  60.     $(CC) $(CFLAGS) -Folzh2c.o lzh2c.c
  61.     $(LD) $(LDFLAGS) -o:$@ lzh2c.o
  62.  
  63. install : lha.exe
  64.     $(INSTALLPROG) lha.exe $(installdir)/lha.exe
  65.  
  66. clean :
  67.     rm -f *.exe *.o *.lzh use_j.c use_e.c *.lnk *.orig *~
  68.  
  69.  
  70. mn.o       : lh.h typedef.h port2.h errmes.h intrface.h disp.h Makefile
  71. append.o   : lh.h intrface.h typedef.h port2.h slidehuf.h errmes.h disp.h
  72. extract.o  : lh.h intrface.h typedef.h port2.h slidehuf.h errmes.h disp.h
  73. list.o     : lh.h typedef.h
  74. match.o    : lh.h typedef.h port2.h errmes.h
  75. header.o   : lh.h intrface.h typedef.h port2.h errmes.h
  76. files.o    : lh.h typedef.h port2.h errmes.h
  77. getopt.o   : lh.h typedef.h
  78. util.o     : lh.h intrface.h typedef.h port2.h slidehuf.h errmes.h
  79. dosio.o    : lh.h typedef.h port2.h
  80. error.o    : lh.h typedef.h errmes.h
  81. path.o     : lh.h typedef.h port2.h
  82. shuf.o     : slidehuf.h typedef.h
  83. dhuf.o     : slidehuf.h typedef.h
  84. larc.o     : slidehuf.h typedef.h
  85. maketbl.o  : slidehuf.h typedef.h errmes.h intrface.h
  86. maketree.o : slidehuf.h typedef.h
  87. crcio.o    : slidehuf.h intrface.h typedef.h errmes.h disp.h
  88. disp.o     : lh.h intrface.h typedef.h
  89. huf.o      : lh.h slidehuf.h typedef.h
  90. slide.o    : lh.h intrface.h slidehuf.h typedef.h errmes.h
  91. use_j.o    : use_j.c
  92. use_e.o    : use_e.c
  93. port2.o    : port2.h Makefile
  94.