home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / WINLBSRC.ZIP / INDEP.MAK < prev    next >
Encoding:
Text File  |  1992-06-10  |  1.5 KB  |  68 lines

  1. # INDEP.MAK - makefile for functions not implemented under Windows
  2. #
  3. # To clean up (i.e., delete) all object files and temporary files, type
  4. #       MAKE clean
  5. # To compile all changed modules and replace their objects in the library, type
  6. #       MAKE
  7. # The memory model must be specified in one of two ways.  You can
  8. # set the environment variable MODEL before running MAKE:
  9. #       SET MODEL=x
  10. # or you can use the -D command line switch:
  11. #       MAKE -DMODEL=x
  12. # where x is the letter s, c, m, l, or h.  Using -D overrides the
  13. # environment variable.
  14.  
  15. !if !$d(MODEL)
  16. !error MODEL not defined. Use -DMODEL=x on command line, or SET MODEL=x.
  17. !endif
  18.  
  19. !if '$(MODEL)'=='h'
  20.  
  21. all :
  22.         echo Can't make a huge model WINDOWS library
  23.  
  24. new :
  25.         echo Can't make a huge model WINDOWS library
  26.  
  27. clean :
  28.         echo Can't clean up a huge model WINDOWS library
  29.  
  30. !else
  31.  
  32. !if !$d(TASM)
  33. TASM = tasm
  34. !endif
  35.  
  36. !if !$d(TLIB)
  37. TLIB = tlib /0
  38. !endif
  39.  
  40. !if $d(WINDLL)
  41. LIBNAME = crtldll.lib
  42. !else
  43. LIBNAME = cw$(MODEL)
  44. !endif
  45.  
  46. LIBDIR = ..\..\lib
  47.  
  48. all : indep\notimp.rsp
  49.         cd indep
  50.         $(TLIB) $(LIBDIR)\$(LIBNAME) @notimp.rsp
  51.         if exist $(LIBDIR)\*.bak del $(LIBDIR)\*.bak
  52.         cd ..
  53.  
  54. indep\notimp.rsp : indep\notimp.lst
  55.         cd indep
  56.         notimp <notimp.lst
  57.         cd ..
  58.         $(TASM) /mx indep\*.asm, indep\\
  59.  
  60. clean :
  61.         cd indep
  62.         del notimp*.asm
  63.         del *.obj
  64.         del notimp.rsp
  65.         cd ..
  66.  
  67. !endif          # if huge model
  68.