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

  1. #===================================================================
  2. #
  3. #   STYLE.MAK -  Bidirectional Style 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 = sty_dlg.h sty_help.h sty_main.h sty_xtrn.h
  25. #-------------------------------------------------------------------
  26. #
  27. #   A list of all of the object files
  28. #
  29. #-------------------------------------------------------------------
  30.  
  31. OBJS = $(OBJDIR)\sty_main.obj $(OBJDIR)\sty_user.obj $(OBJDIR)\sty_init.obj \
  32.        $(OBJDIR)\sty_pnt.obj  $(OBJDIR)\sty_dlg.obj  $(OBJDIR)\sty_file.obj \
  33.        $(OBJDIR)\sty_edit.obj $(OBJDIR)\sty_help.obj
  34.  
  35. ALL_IPF = style.ipf sty_file.ipf sty_edit.ipf sty_help.ipf sty_menu.ipf \
  36.           sty_dlg.ipf
  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)\style.exe $(EXEDIR)\style.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)\sty_main.res: $(HEADERS)   sty_main.ico sty_main.rc  \
  52.                         sty_main.dlg prodinfo.bmp sty_help.rc
  53.                 $(RC) $(RCFLAGS) $(@B).rc $@
  54.  
  55. prodinfo.bmp:
  56.       copy ..\..\..\prodinfo.bmp $@
  57.  
  58. style.hlp: $(ALL_IPF)
  59.  
  60. $(OBJDIR)\sty_main.obj: sty_main.c $(HEADERS)
  61.  
  62. $(OBJDIR)\sty_file.obj: sty_file.c $(HEADERS)
  63.  
  64. $(OBJDIR)\sty_edit.obj: sty_edit.c $(HEADERS)
  65.  
  66. $(OBJDIR)\sty_user.obj: sty_user.c $(HEADERS)
  67.  
  68. $(OBJDIR)\sty_init.obj: sty_init.c $(HEADERS)
  69.  
  70. $(OBJDIR)\sty_pnt.obj: sty_pnt.c   $(HEADERS)
  71.  
  72. $(OBJDIR)\sty_dlg.obj: sty_dlg.c   $(HEADERS)
  73.  
  74. $(OBJDIR)\sty_help.obj: sty_help.c $(HEADERS)
  75.  
  76. $(EXEDIR)\style.exe: $(OBJS) $(@B).def $(OBJDIR)\sty_main.res
  77.    -$(CREATE_PATH)
  78.    $(LINK) $@ $(@B).def $(MTLIBS) + PMBIDI.LIB @<<$(OBJDIR)\$(@B).lnk
  79. $(OBJS)
  80. <<
  81.    $(RC) -p -x $(OBJDIR)\sty_main.res $@
  82.  
  83. clean :
  84.         @if exist *.obj del *.obj
  85.         @if exist *.dll del *.dll
  86.         @if exist *.exe del *.exe
  87.