home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / os2tk21j / c / samples / semaph / semaph.ma_ / semaph.mak
Encoding:
Makefile  |  1993-03-12  |  2.3 KB  |  70 lines

  1. #===================================================================
  2. #
  3. #   SEMAPH.MAK - Semaph Application Make file
  4. #   (C) Copyright IBM Corporation 1992.
  5. #
  6. #===================================================================
  7. include ..\ibmsamp.inc
  8.  
  9. HEADERS = semaph.h
  10.  
  11. #===================================================================
  12. #
  13. #   A list of all of the object files
  14. #
  15. #===================================================================
  16. ALL_OBJS = sem_main.obj sem_user.obj sem_init.obj sem_pnt.obj \
  17.            semaph.obj sem_help.obj sem_dlg.obj
  18. ALL_IPF =  semaph.ipf
  19.  
  20. #-------------------------------------------------------------------
  21. #   This section lists all files to be built by the make.  The
  22. #   makefile builds the executible as well as its associated help
  23. #   file.
  24. #-------------------------------------------------------------------
  25. all: semaph.exe semaph.hlp
  26.  
  27. #-------------------------------------------------------------------
  28. #   This section creates the command file used by the linker.  This
  29. #   command file is recreated automatically every time you change
  30. #   the object file list, linker flags, or library list.
  31. #-------------------------------------------------------------------
  32. semaph.lnk: semaph.mak
  33.     echo $(ALL_OBJS)           > semaph.lnk
  34.     echo semaph.exe           >> semaph.lnk
  35.     echo semaph.map           >> semaph.lnk
  36.     echo $(MTLIBS)            >> semaph.lnk
  37.     echo semaph.def           >> semaph.lnk
  38.  
  39. #-------------------------------------------------------------------
  40. #
  41. #   Dependencies
  42. #     This section lists all object files needed to be built for the
  43. #     application, along with the files it is dependent upon (e.g.
  44. #     its source and any header files).
  45. #
  46. #-------------------------------------------------------------------
  47. semaph.res: semaph.rc $(HEADERS) semaph.dlg semaph.ico
  48.  
  49. semaph.hlp : $(ALL_IPF)
  50.  
  51. sem_main.obj: sem_main.c $(HEADERS)
  52.  
  53. sem_edit.obj: sem_edit.c $(HEADERS)
  54.  
  55. sem_user.obj: sem_user.c $(HEADERS)
  56.  
  57. semaph.obj: semaph.c $(HEADERS)
  58.  
  59. sem_help.obj: sem_help.c $(HEADERS)
  60.  
  61. sem_init.obj: sem_init.c $(HEADERS)
  62.  
  63. sem_pnt.obj: sem_pnt.c $(HEADERS)
  64.  
  65. sem_dlg.obj: sem_dlg.c $(HEADERS)
  66.  
  67. semaph.exe: $(ALL_OBJS) semaph.def semaph.lnk semaph.res
  68.     $(LINK) @semaph.lnk
  69.     rc -p -x semaph.res semaph.exe
  70.