home *** CD-ROM | disk | FTP | other *** search
/ PC Loisirs 18 / cd.iso / sharewar / mikm202 / source / loaders / makefile.wc < prev    next >
Encoding:
Makefile  |  1995-09-18  |  2.7 KB  |  94 lines

  1. #                             EXAMPLE MAKEFILE
  2. #                             ----------------
  3. #
  4. # DESCRIPTION
  5. # -----------
  6. # Generic make file for a C program.
  7.  
  8. # EXAMPLE
  9. # -------
  10. # This makefile assumes you are trying to compile a program for OS/2 2.x
  11. # called "example.c" and subroutines contained in two separate files
  12. # called "sub1.c" and "sub2.c".
  13.  
  14. # INSTRUCTIONS
  15. # ------------
  16. # Set the following macros to appropriate values:
  17. #       Compiler        - the name of the compiler. Either 'wcc386' for
  18. #                         32-bit programs or 'wcc' for 16-bit ones.
  19. #       Compiler_options- what ever options you wish for your compiles.
  20. #       Linker_options  - what ever options you wish for your links.
  21. #       System          - The name of a system from the
  22. #                         "\WATCOM\BINB\WLSYSTEM.LNK" file. This identifies
  23. #                         the target operating system the program is to
  24. #                         run on.
  25. #       Exe_file        - the name of the resulting executable file.
  26. #       Object_files    - the list of object files to be linked together.
  27. #
  28. # If this makefile is called "makefile" then just run WMAKE.
  29. # If it has another name such as "example.mak" then you have to
  30. # give the file name at the command line:
  31. #   WMAKE /f example.mak
  32.  
  33. # REMARKS
  34. # -------
  35. # Default Watcom compiler options are set using an environment variable
  36. # which can be placed in "config.sys". For instance, one may have:
  37. #
  38. # SET WCC386=/3 /FPI87 /Ox /D1
  39. #
  40. # Then, the Compiler_Options variable below will modify the default.
  41. #
  42. # WVIDEO DEBUGGER SETUP
  43. # ---------------------
  44. # The following environment variable makes WVIDEO a bit nicer in OS/2
  45. # (you can set this environment variable in config.sys)
  46. #
  47. #  SET WVIDEO=/Lines#33
  48. #
  49. # The /Lines#33 parameter makes WVIDEO use a 33 line display which
  50. # in an OS/2 Window on VGA makes more use of the screen area.
  51.  
  52. # BEGINNING OF MAKE FILE....
  53.  
  54. ##########################
  55. ## User settable macros ##
  56. ##########################
  57.  
  58. Compiler = wcc386
  59. #Compiler = wcc
  60.  
  61. # Compiler_Options =
  62. # Following is best setup for WVIDEO debugger.
  63. Compiler_Options = /ox /j /I=..\include
  64.  
  65. # Linker_options   = 
  66. Linker_options   = debug all
  67.  
  68. System       = dos4g
  69.  
  70. Lib_file     = loaders.lib
  71.  
  72. Object_files = 669LOAD.OBJ &
  73.     DSMLOAD.OBJ &
  74.     FARLOAD.OBJ &
  75.     M15LOAD.OBJ &
  76.     MEDLOAD.OBJ &
  77.     MODLOAD.OBJ &
  78.     MTMLOAD.OBJ &
  79.     S3MLOAD.OBJ &
  80.     STMLOAD.OBJ &
  81.     ULTLOAD.OBJ &
  82.     UNILOAD.OBJ &
  83.     XMLOAD.OBJ 
  84.  
  85. ####################
  86. ## Makefile rules ##
  87. ####################
  88.  
  89. $(Lib_file): $(Object_files)
  90.            *wlib $(Lib_file) $(Object_files)
  91.  
  92. .c.obj:
  93.     *$(Compiler) $(Compiler_Options) $<
  94.