home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / inole-b.mak < prev    next >
Text File  |  1997-12-19  |  3KB  |  68 lines

  1. #
  2. # INOLE-B.MAK
  3. # Common Linker Commands
  4. #
  5. # Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  6. #
  7. # Kraig Brockschmidt, Microsoft
  8. # Internet  :  kraigb@microsoft.com
  9. # Compuserve:  >INTERNET:kraigb@microsoft.com
  10. #
  11.  
  12. #
  13. # This file should be included after the sample's makefile
  14. # has defined INCLS, OBJS, OUTFILE, etc., and included inole-a.mak.
  15. # The separation between inole-a.mak and this file is to allow
  16. # a sample to change default definitions in inole-a.mak before
  17. # including this file to build the sample.
  18. #
  19.  
  20.  
  21. $(OUTFILE) : $(OBJS) $(TARGET).res $(DEFFILE)
  22.     echo ++++++++++
  23.     echo Linking $@
  24.  
  25. #Note:  some of this is Intel only...
  26. !ifndef WIN16
  27.     echo $(LINK)                         > $(TARGET).lrf
  28.     echo $(ENTRY)                       >> $(TARGET).lrf
  29.     echo -def:win32.def                 >> $(TARGET).lrf
  30.     echo -out:$(OUTFILE)                >> $(TARGET).lrf
  31.     echo -machine:IX86                  >> $(TARGET).lrf
  32.     echo -subsystem:windows            >> $(TARGET).lrf
  33.     echo -align:0x1000                  >> $(TARGET).lrf
  34.     echo $(OBJS1)                       >> $(TARGET).lrf
  35.     echo $(OBJS2)                       >> $(TARGET).lrf
  36.     echo $(OBJS3)                       >> $(TARGET).lrf
  37.     echo $(OBJS4)                       >> $(TARGET).lrf
  38.     echo $(OBJS5)                       >> $(TARGET).lrf
  39.     echo $(OBJS6)                       >> $(TARGET).lrf
  40.     echo $(TARGET).res                  >> $(TARGET).lrf
  41.     echo $(LIBS)                        >> $(TARGET).lrf
  42.     echo $(LIBS32)                      >> $(TARGET).lrf
  43.  
  44.     link @$(TARGET).lrf
  45.     del $(TARGET).lrf
  46.  
  47. !else
  48.  
  49.     echo +                               > $(TARGET).lrf
  50.     echo $(OBJS1) +                     >> $(TARGET).lrf
  51.     echo $(OBJS2) +                     >> $(TARGET).lrf
  52.     echo $(OBJS3) +                     >> $(TARGET).lrf
  53.     echo $(OBJS4) +                     >> $(TARGET).lrf
  54.     echo $(OBJS5) +                     >> $(TARGET).lrf
  55.     echo $(OBJS6)                       >> $(TARGET).lrf
  56.     echo $(OUTFILE) $(LINK)             >> $(TARGET).lrf
  57.     echo nul/li                         >> $(TARGET).lrf
  58.     echo $(LIBS32A) +                   >> $(TARGET).lrf
  59.     echo $(LIBS32B) +                   >> $(TARGET).lrf
  60.     echo $(LIBS)                        >> $(TARGET).lrf
  61.     echo win16.def                      >> $(TARGET).lrf
  62.  
  63.     link @$(TARGET).lrf
  64.     del $(TARGET).lrf
  65.     rc -v -K $(TARGET).res $(OUTFILE)
  66.  
  67. !endif
  68.