home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / PCMCIA / SOCKET / MAKEFILE next >
Text File  |  1995-04-14  |  3KB  |  113 lines

  1. #############################################################################
  2. #
  3. #                               MAKEFILE.OS2
  4. #
  5. #                      Socket Services makefile for OS2
  6. #
  7. #           Copyright (c) Award Software International Inc., 1994
  8. #
  9. #
  10. #############################################################################
  11.  
  12. # Tools Location ############################################################
  13.  
  14. OS2_DDK   = ..\..\..\..
  15. MSA_ROOT  = ..\..\..\..\MASM60             # MS Macro Assembler V6.11
  16.  
  17. # Do not modify below this line #############################################
  18.  
  19. MSA_BIN         = $(MSA_ROOT)\BINP
  20. MSA_INC         = $(MSA_ROOT)\INCLUDE
  21.  
  22. H               = $(OS2_DDK)\H
  23. TOOLSPATH       = $(OS2_DDK)\TOOLS
  24. OS2DDK_INC      = $(OS2_DDK)\INC
  25. OS2DDK_LIB      = $(OS2_DDK)\LIB
  26.  
  27. OS2LINK         = $(TOOLSPATH)\LINK.EXE
  28. OS2MAP2SYM      = $(TOOLSPATH)\MAPSYM.EXE
  29. ASM             = $(MSA_BIN)\ML         # Microsoft Macro Assembler
  30.  
  31. # Definitions ################################################################
  32.  
  33. AFLAGS  = -DALIGNCODE -W3 -c -nologo -Cp
  34. LFLAGS  = /noe /nod /map /EXEPACK /ALIGN:16 /FAR
  35. INC     = $(MSA_INC);$(OS2DDK_INC)
  36.  
  37. DEF     = SSPCIC.DEF
  38.  
  39. #
  40. # Since the compiler/linker and other tools use environment
  41. # variables ( INCLUDE, LIB, etc ) in order to get the location of files,
  42. # the following line will check the environment for the LIFE of the
  43. # makefile and will be specific to this set of instructions. All MAKEFILES
  44. # are requested to use this format to insure that they are using the correct
  45. # level of files and tools.
  46. #
  47.  
  48. !if [set INCLUDE=$(INC)] || [set LIB=$(OS2DDK_LIB)] || [set PATH=$(TOOLSPATH)]
  49. !endif
  50.  
  51. !include      "$(H)\version.mak"
  52.  
  53. INCS    = ssmac.inc ssdefs.inc sspcic.inc ss_segm.inc ssmsg.inc ssos2.inc
  54.  
  55. OBJS    = sspcicut.obj sspcicdp.obj sspcic.obj sspcicin.obj sspcicva.obj \
  56.           sspcicwm.obj ssmsg.obj ssos2drv.obj
  57.  
  58. .asm.obj:
  59.         $(ASM) $(AFLAGS) /Fo$@ %s
  60.  
  61. # Main target #################################################################
  62.  
  63. sspcic.sys:  $(OBJS) MAKEFILE
  64.         Rem Create DEF file <<$(DEF)
  65. LIBRARY SSPCIC
  66. DESCRIPTION '$(FILEVER)  Award OS/2 Socket Services Driver'
  67. PROTMODE
  68. CODE PRELOAD
  69. DATA PRELOAD
  70. SEGMENTS
  71.         _DATA     CLASS 'DATA'     PRELOAD
  72.         CONST     CLASS 'CONST'    PRELOAD
  73.         _BSS      CLASS 'BSS'      PRELOAD
  74.         _TEXT     CLASS 'CODE'     PRELOAD
  75.         INIT_DATA CLASS 'INITDATA' PRELOAD
  76.         INIT_CODE CLASS 'INITCODE' PRELOAD IOPL
  77. <<keep
  78.  
  79.         $(OS2LINK) $(LFLAGS) @<<$(@B).LNK
  80. ssos2drv.obj  +
  81. sspcicut.obj  +
  82. sspcicdp.obj  +
  83. sspcic.obj    +
  84. sspcicin.obj  +
  85. sspcicva.obj  +
  86. sspcicwm.obj  +
  87. ssmsg.obj
  88. sspcic.sys
  89. sspcic.map
  90. $(OS2DDK_LIB)\doscalls.lib $(OS2DDK_LIB)\os2286p.lib
  91. $(DEF)
  92. <<keep
  93.  
  94.         $(OS2MAP2SYM) sspcic.MAP
  95.  
  96.  
  97. sspcicut.obj:    sspcicut.asm $(INCS)
  98.  
  99. sspcicdp.obj:    sspcicdp.asm $(INCS)
  100.  
  101. sspcic.obj:      sspcic.asm   $(INCS)
  102.  
  103. sspcicin.obj:    sspcicin.asm $(INCS)
  104.  
  105. ssmsg.obj:       ssmsg.asm    $(INCS)
  106.  
  107. sspcicva.obj:    sspcicva.asm $(INCS)
  108.  
  109. sspcicwm.obj:    sspcicwm.asm $(INCS)
  110.  
  111. ssos2drv.obj:    ssos2drv.asm $(INCS)
  112.  
  113.