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

  1. #===================================================================
  2. #
  3. #   TELDIR.MAK - Bidirectional Telephone Directory Sample 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 = teldir.h
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. OBJS = $(OBJDIR)\teldir.obj
  32.  
  33. ALL_IPF = teldir.ipf teldirh.ipf
  34. #-------------------------------------------------------------------
  35. #   This section lists all files to be built by  make.  The
  36. #   makefile builds the executable as well as its associated help
  37. #   file.
  38. #-------------------------------------------------------------------
  39. all: $(EXEDIR)\teldir.exe $(EXEDIR)\teldir.hlp $(EXEDIR)\teldirh.hlp
  40.  
  41. #-------------------------------------------------------------------
  42. #   Dependencies
  43. #     This section lists all object files needed to be built for the
  44. #     application, along with the files it is dependent upon (e.g.
  45. #     its source and any header files).
  46. #-------------------------------------------------------------------
  47.  
  48. $(OBJDIR)\teldir.res: $(HEADERS) teldir.rc
  49.                 $(RC) $(RCFLAGS) $(@B).rc $@
  50.  
  51. $(EXEDIR)\teldir.hlp:  $(ALL_IPF)
  52.  
  53. $(EXEDIR)\teldirh.hlp: $(ALL_IPF)
  54.     ipfc $(@B).ipf $@ /W3  /COUNTRY=972 /CODEPAGE=862
  55.  
  56. $(OBJDIR)\teldir.obj:  teldir.c $(HEADERS)
  57.  
  58. $(EXEDIR)\teldir.exe: $(OBJS) $(@B).def $(OBJDIR)\teldir.res
  59.    -$(CREATE_PATH)
  60.    $(LINK) $@ $(@B).def $(MTLIBS) + PMBIDI.LIB $(OBJS)
  61.    $(RC) -p -x $(OBJDIR)\teldir.res $@
  62.  
  63. clean :
  64.         @if exist *.obj del *.obj
  65.         @if exist *.dll del *.dll
  66.         @if exist *.exe del *.exe
  67.