home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / pm / ipf / ipf.mak < prev    next >
Makefile  |  1999-05-11  |  3KB  |  72 lines

  1. #===================================================================
  2. #
  3. #   IPF.MAK    - IPF 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 = ipf.h
  25.  
  26. ALL_IPF = ipf.ipf
  27. #-------------------------------------------------------------------
  28. #
  29. #   A list of all of the object files
  30. #
  31. #-------------------------------------------------------------------
  32.  
  33. OBJS = $(OBJDIR)\ipf.obj
  34.  
  35. #-------------------------------------------------------------------
  36. #   This section lists all files to be built by  make.  The
  37. #   makefile builds the executable as well as its associated help
  38. #   file.
  39. #-------------------------------------------------------------------
  40. all: $(EXEDIR)\ipf.dll $(EXEDIR)\ipf.inf
  41.  
  42. #-------------------------------------------------------------------
  43. #   Dependencies
  44. #     This section lists all object files needed to be built for the
  45. #     application, along with the files it is dependent upon (e.g.
  46. #     its source and any header files).
  47. #-------------------------------------------------------------------
  48.  
  49. $(OBJDIR)\ipf.res: $(HEADERS) ipf.rc     ipf.ico    frame1.bmp frame2.bmp \
  50.                               frame4.bmp frame5.bmp frame3.bmp prodinfo.bmp
  51.                 $(RC) $(RCFLAGS) $(@B).rc $@
  52.                 @del prodinfo.bmp
  53.  
  54. prodinfo.bmp :
  55.            copy ..\..\prodinfo.bmp $@
  56.  
  57. $(EXEDIR)\ipf.inf: $(ALL_IPF)
  58.    $(IPF) /inf $(@B).ipf $@ /W3
  59.  
  60. $(OBJDIR)\ipf.obj: ipf.c $(HEADERS)
  61.    $(CC) -c $(DLLCFLAGS) -Fo"$(OBJDIR)\$(@B).obj" $(@B).c
  62.  
  63. $(EXEDIR)\ipf.dll: $(OBJS) $(@B).def $(OBJDIR)\$(@B).res
  64.    -$(CREATE_PATH)
  65.    $(LINK) $@ $(DLLCFLAGS) $(@B).def $(MTLIBS) $(OBJS)
  66.    $(RC) -p -x $(OBJDIR)\$(@B).res $@
  67.  
  68. clean :
  69.         @if exist *.obj del *.obj
  70.         @if exist *.dll del *.dll
  71.         @if exist *.exe del *.exe
  72.