home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / samples / dllapi / dllapi.mak < prev    next >
Encoding:
Makefile  |  1993-03-12  |  4.2 KB  |  113 lines

  1. #===================================================================
  2. #
  3. #   DLLAPI.MAK - DLL Application Make file
  4. #   (C) Copyright IBM Corporation 1992.
  5. #
  6. #===================================================================
  7.  
  8. #-------------------------------------------------------------------
  9. #   IBMSAMP.INC - sets up for IBM Compiler
  10. #-------------------------------------------------------------------
  11. include ..\ibmsamp.inc
  12.  
  13. HEADERS = dllapi.h
  14.  
  15. #===================================================================
  16. #
  17. #   A list of all of the object files
  18. #
  19. #===================================================================
  20. ALL_OBJS = dllapi.obj dlapi_in.obj dlapi_hp.obj dlapi_dg.obj
  21.  
  22. ALL_IPF = dllapi.ipf
  23.  
  24. #-------------------------------------------------------------------
  25. #   This section lists all files to be built by the make.  The
  26. #   makefile builds the executible as well as its associated help
  27. #   file.
  28. #-------------------------------------------------------------------
  29. all: dllapi.exe dllapi.hlp dllib.dll
  30.  
  31. #-------------------------------------------------------------------
  32. #   This section creates the command file used by the linker.  This
  33. #   command file is recreated automatically every time you change
  34. #   the object file list, linker flags, or library list.
  35. #-------------------------------------------------------------------
  36. dllapi.lnk: dllapi.mak
  37.     echo $(ALL_OBJS)                > dllapi.lnk
  38.     echo dllapi.exe                >> dllapi.lnk
  39.     echo dllapi.map                >> dllapi.lnk
  40.     echo $(MTLIBS)                 >> dllapi.lnk
  41.     echo dllapi.def                >> dllapi.lnk
  42.  
  43. #-------------------------------------------------------------------
  44. #   Dependencies
  45. #     This section lists all object files needed to be built for the
  46. #     application, along with the files it is dependent upon (e.g.
  47. #     its source and any header files).
  48. #-------------------------------------------------------------------
  49. dllapi.res: dllapi.rc $(HEADERS) dllapi.dlg dllapi.ico
  50.  
  51. dllapi.hlp: $(ALL_IPF)
  52.  
  53. dllapi.obj: dllapi.c $(HEADERS)
  54.  
  55. dlapi_dg.obj: dlapi_dg.c $(HEADERS)
  56.  
  57. dlapi_in.obj: dlapi_in.c $(HEADERS)
  58.  
  59. dlapi_hp.obj: dlapi_hp.c $(HEADERS)
  60.  
  61.  
  62. dllapi.exe: $(ALL_OBJS) dllapi.def dllapi.res dllapi.lnk
  63.     $(LINK) @dllapi.lnk
  64.     rc -p -x dllapi.res dllapi.exe
  65.  
  66.  
  67.  
  68. #===================================================================
  69. #
  70. #   DLLIB.MAK - Dynamic Linking Library Make file
  71. #   (C) Copyright IBM Corporation 1992.
  72. #
  73. #===================================================================
  74. LIBHEADERS  = dllib.h
  75.  
  76. #===================================================================
  77. #
  78. #   A list of all of the object files
  79. #
  80. #===================================================================
  81. DLL_OBJS = dllib.obj
  82.  
  83. #-------------------------------------------------------------------
  84. #   This section lists all files to be built by the make.  The
  85. #   makefile builds the executible as well as its associated help
  86. #   file.
  87. #-------------------------------------------------------------------
  88. dllib.obj : dllib.c $(LIBHEADERS)
  89.   icc /c /Ge- /Gd- /Se /Re /ss /Ms /Gm+ /Kb+ /Ti+ /D__MIG_LIB__ -Fodllib.obj dllib.c
  90.  
  91. #-------------------------------------------------------------------
  92. #   This section creates the command file used by the linker.  This
  93. #   command file is recreated automatically every time you change
  94. #   the object file list, linker flags, or library list.
  95. #-------------------------------------------------------------------
  96. dllib.lnk: dllapi.mak
  97.     echo $(DLL_OBJS)           > dllib.lnk
  98.     echo dllib.dll            >> dllib.lnk
  99.     echo dllib.map            >> dllib.lnk
  100.     echo $(DLLLIBS)           >> dllib.lnk
  101.     echo dllib.def            >> dllib.lnk
  102.  
  103. #-------------------------------------------------------------------
  104. #   Dependencies
  105. #     This section lists all object files needed to be built for the
  106. #     application, along with the files it is dependent upon (e.g.
  107. #     its source and any header files).
  108. #-------------------------------------------------------------------
  109. dllib.obj : dllib.c $(LIBHEADERS)
  110.  
  111. dllib.dll: $(DLL_OBJS) dllib.lnk dllib.def
  112.     $(LINK) @dllib.lnk
  113.