home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / EXTRAS / UUCODE / UUPC / TEST / UPC12ES1.ZIP / LIB / lib.mak < prev    next >
Encoding:
Text File  |  1993-10-29  |  5.2 KB  |  140 lines

  1. # *--------------------------------------------------------------------*
  2. # *     l i b . m a k                                                  *
  3. # *                                                                    *
  4. # *     Changes Copyright (c) 1989-1993 by Kendra Electronic           *
  5. # *     Wonderworks.                                                   *
  6. # *                                                                    *
  7. # *     All rights reserved except those explicitly granted by the     *
  8. # *     UUPC/extended license agreement.                               *
  9. # *--------------------------------------------------------------------*
  10.  
  11. #       $Id: lib.mak 1.12 1993/10/13 01:47:19 ahd Exp $
  12. #
  13. #       Revision history:
  14. #       $Log: lib.mak $
  15. #    Revision 1.12  1993/10/13  01:47:19  ahd
  16. #    Don't try to recreate version header file
  17. #
  18. #    Revision 1.11  1993/09/29  04:48:23  ahd
  19. #    Add usr signal handler
  20. #    Use one long tlib command to build library
  21. #
  22. #    Revision 1.10  1993/09/24  03:42:24  ahd
  23. #    Add OS/2 error module (pos2err.c)
  24. #
  25. #    Revision 1.9  1993/09/20  04:36:42  ahd
  26. #    TCP/IP support from Dave Watt
  27. #    't' protocol support
  28. #    BC++ 1.0 for OS/2 support
  29. #
  30. #    Revision 1.8  1993/07/31  16:21:21  ahd
  31. #    Windows 3.x support
  32. #
  33. #    Revision 1.7  1993/07/22  23:19:01  ahd
  34. #    Make library build more generic
  35. #
  36. #    Revision 1.6  1993/04/05  04:31:55  ahd
  37. #    Add time stamp, size to data returned by directory searches
  38. #
  39. #    Revision 1.5  1993/03/06  22:47:34  ahd
  40. #    Move active into shared library
  41. #
  42. #       Revision 1.4  1992/11/27  14:37:34  ahd
  43. #       Add scrsize() to build
  44. #
  45. #       Revision 1.3  1992/11/23  02:46:06  ahd
  46. #       Addd strpool and normalize to build list
  47. #
  48. #       Revision 1.2  1992/11/17  13:47:42  ahd
  49. #       Drop type of input file
  50. #
  51.  
  52. !include $(UUPCDEFS)
  53.  
  54. .c.obj:
  55.   $(CC) -c $(CCX) -I$: { $<}
  56.  
  57. .asm.obj:
  58.         $(TASM) $(TASMOPT) $<,$(OBJ)\$&;
  59.  
  60. .path.c   = $(LIB)
  61.  
  62. #       The names of various object files that we create.
  63.  
  64. LIBLST1= $(OBJ)\active.obj\
  65.          $(OBJ)\arbmath.obj $(OBJ)\arpadate.obj $(OBJ)\bugout.obj\
  66.          $(OBJ)\catcher.obj $(OBJ)\chdir.obj $(OBJ)\checkptr.obj\
  67.          $(OBJ)\configur.obj $(OBJ)\dater.obj $(OBJ)\dos2unix.obj\
  68.          $(OBJ)\expath.obj $(OBJ)\execute.obj
  69. LIBLST2= $(OBJ)\export.obj $(OBJ)\filebkup.obj $(OBJ)\fopen.obj\
  70.          $(OBJ)\getargs.obj $(OBJ)\getopt.obj $(OBJ)\getseq.obj\
  71.          $(OBJ)\hostable.obj $(OBJ)\hostatus.obj
  72. LIBLST3= $(OBJ)\hostrset.obj $(OBJ)\import.obj $(OBJ)\importng.obj\
  73.          $(OBJ)\kanjicnv.obj $(OBJ)\lock.obj $(OBJ)\logger.obj\
  74.          $(OBJ)\mkdir.obj $(OBJ)\mkfilenm.obj $(OBJ)\mkmbox.obj
  75. LIBLST4= $(OBJ)\mktempnm.obj $(OBJ)\printerr.obj\
  76.          $(OBJ)\printmsg.obj $(OBJ)\pushpop.obj $(OBJ)\readnext.obj\
  77.          $(OBJ)\rename.obj $(OBJ)\safeio.obj $(OBJ)\normaliz.obj
  78. LIBLST5= $(OBJ)\safeout.obj $(OBJ)\security.obj $(OBJ)\ssleep.obj\
  79.          $(OBJ)\stater.obj $(OBJ)\usertabl.obj $(OBJ)\validcmd.obj\
  80.          $(OBJ)\strpool.obj $(OBJ)\trumpet.obj $(OBJ)\usrcatch.obj \
  81.          $(TIMESTMP)
  82. LIBDOS = $(OBJ)\scrsize.obj $(OBJ)\ndir.obj
  83. LIBOS2 = $(OBJ)\scrsize2.obj $(OBJ)\ndiros2.obj  $(OBJ)\pos2err.obj
  84. LIBWIN = $(OBJ)\scrsize.obj $(OBJ)\ndirwin.obj  $(OBJ)\winutil.obj \
  85.          $(OBJ)\pwinsock.obj
  86. LIBLST = $(LIBLST1) $(LIBLST2) $(LIBLST3) $(LIBLST4) $(LIBLST5)
  87.  
  88. !if $d(__OS2__)
  89. LIBALL = $(LIBLST) $(LIBOS2)
  90. !elif $d(WINDOWS)
  91. LIBALL = $(LIBLST) $(LIBWIN)
  92. !else
  93. LIBALL = $(LIBLST) $(LIBDOS)
  94. !endif
  95.  
  96. # *--------------------------------------------------------------------*
  97. # *     Force a regeneration of the time stamp/version module.         *
  98. # *--------------------------------------------------------------------*
  99.  
  100. regen:  $(LIB)\timestmp.c
  101.         - erase $(TIMESTMP)
  102.  
  103. # *--------------------------------------------------------------------*
  104. # *     The timestamp module has a reference to this MAKEFILE,         *
  105. # *     which insures whenever we change the version number the        *
  106. # *     time stamp gets re-generated.                                  *
  107. # *--------------------------------------------------------------------*
  108.  
  109. $(TIMESTMP): $(LIB)\timestmp.c $(UUPCCFG) $(REGEN) \
  110.                 $(MAKEFILE) \
  111.                 $(LIB)\lib.mak \
  112.                 $(MAIL)\mail.mak \
  113.                 $(UUCP)\uucp.mak \
  114.                 $(UUCICO)\uucico.mak \
  115.                 $(UTIL)\util.mak \
  116.                 $(LIB)\win32ver.h
  117.  
  118. # *--------------------------------------------------------------------*
  119. # *     Common library build                                           *
  120. # *--------------------------------------------------------------------*
  121.  
  122. $(UUPCLIB): $(LIBALL)
  123. #       &TLIB /C /E $< -+$?
  124.         - erase $(WORKFILE)
  125. !if $d(__OS2__)
  126.         &echo -+$? ^& >> $(WORKFILE)
  127. !else
  128.         &echo -+$? & >> $(WORKFILE)
  129. !endif
  130.         echo ,NUL >> $(WORKFILE)
  131.         TLIB /C /E $< @$(WORKFILE)
  132.         - erase $(TEMP)\$&.BAK
  133.  
  134. # *--------------------------------------------------------------------*
  135. # *               We don't optimize the sleep routine!                 *
  136. # *--------------------------------------------------------------------*
  137.  
  138. ssleep.obj: ssleep.c
  139.         $(CC) -c $(CCX) -Od -I$: { $<}
  140.