home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / gpiimage.zip / IMAGE32.MAK < prev    next >
Makefile  |  1998-04-20  |  4KB  |  106 lines

  1. #===================================================================
  2. #
  3. #   IMAGE32.MAK -  32-Bit Image Application Make file
  4. #   Copyright      IBM Corporation 1996
  5. #
  6. #===================================================================
  7. #===================================================================
  8. # Include the file ibmsamp.inc which defines the various macros
  9. # depending on the target specified.
  10. #
  11. # The following macros are defined in ibmsamp.inc:
  12. #
  13. #       OBJDIR   - Directory where object files are created
  14. #       EXEDIR   - Directory where executable files are created
  15. #       RC       - Resource compiler
  16. #       RCFLAGS  - Resource compiler flags
  17. #       LINK     - Linker
  18. #       LFLAGS   - Linker flags
  19. #       MTLIBS   - Multithreaded versions of the runtime libraries
  20. #===================================================================
  21.  
  22. !include ..\..\ibmsamp.inc
  23.  
  24. HEADERS = img_main.h img_xtrn.h
  25.  
  26. ALL_IPF = img_main.ipf img_file.ipf img_view.ipf img_help.ipf
  27. #-------------------------------------------------------------------
  28. #
  29. #   A list of all of the object files
  30. #
  31. #-------------------------------------------------------------------
  32.  
  33. OBJS = $(OBJDIR)\img_ma32.obj $(OBJDIR)\img_da32.obj $(OBJDIR)\img_in32.obj $(OBJDIR)\img_pn32.obj \
  34.        $(OBJDIR)\img_vi32.obj $(OBJDIR)\img_dl32.obj $(OBJDIR)\img_he32.obj $(OBJDIR)\img_si32.obj \
  35.        $(OBJDIR)\img_fi32.obj $(OBJDIR)\img_me32.obj $(OBJDIR)\img_ut32.obj
  36.  
  37. #-------------------------------------------------------------------
  38. #   This section lists all files to be built by  make.  The
  39. #   makefile builds the executable as well as its associated help
  40. #   file.
  41. #-------------------------------------------------------------------
  42. all: $(EXEDIR)\image32.exe $(EXEDIR)\image.hlp
  43.  
  44. #-------------------------------------------------------------------
  45. #   Dependencies
  46. #     This section lists all object files needed to be built for the
  47. #     application, along with the files it is dependent upon (e.g.
  48. #     its source and any header files).
  49. #-------------------------------------------------------------------
  50.  
  51. $(OBJDIR)\img_ma32.res: $(HEADERS) img_main.rc image.dlg img_help.rc prodinfo.bmp
  52.                 $(RC) $(RCFLAGS) img_main.rc $@
  53.                 @del prodinfo.bmp
  54.  
  55. prodinfo.bmp :
  56.            copy ..\..\prodinfo.bmp $@
  57.  
  58. $(EXEDIR)\image.hlp: $(ALL_IPF)
  59.         $(IPF) img_main.ipf $(EXEDIR)\$(@B).hlp /W3
  60.  
  61. $(OBJDIR)\img_ma32.obj:
  62.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_main.c
  63.  
  64. $(OBJDIR)\img_me32.obj:
  65.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_menu.c
  66.  
  67. $(OBJDIR)\img_si32.obj:
  68.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_size.c
  69.  
  70. $(OBJDIR)\img_fi32.obj:
  71.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_file.c
  72.  
  73. $(OBJDIR)\img_vi32.obj:
  74.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_view.c
  75.  
  76. $(OBJDIR)\img_da32.obj:
  77.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_data.c
  78.  
  79. $(OBJDIR)\img_in32.obj:
  80.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_init.c
  81.  
  82. $(OBJDIR)\img_pn32.obj:
  83.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_pnt.c
  84.  
  85. $(OBJDIR)\img_dl32.obj:
  86.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_dlg.c
  87.  
  88. $(OBJDIR)\img_he32.obj:
  89.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_help.c
  90.  
  91. $(OBJDIR)\img_ut32.obj:
  92.    $(CC) -c -DLINT_ARGS -DHELP_MANAGER_ENABLED -DPORT_32 -Fo"$@" img_util.c
  93.  
  94.  
  95. $(EXEDIR)\image32.exe: $(OBJS) $(@B).def $(OBJDIR)\img_ma32.res
  96.    -$(CREATE_PATH)
  97.    $(LINK) $@ $(@B).def $(MTLIBS) @<<$(OBJDIR)\image32.lnk
  98. $(OBJS)
  99. <<
  100.    $(RC) -p -x $(OBJDIR)\img_ma32.res $@
  101.  
  102. clean :
  103.         @if exist *.obj del *.obj
  104.         @if exist *.dll del *.dll
  105.         @if exist *.exe del *.exe
  106.