home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / advframe / tstdlg / makefile < prev    next >
Encoding:
Makefile  |  1996-10-29  |  817 b   |  43 lines

  1. ## Advanced Frame - Dialog Window Example
  2.  
  3. CFLAGS = /Ft- /Gd+ /Gm+ /Wall+gnr-ppc-ppt-uni-vft-
  4. LFLAGS = /PM:PM
  5.  
  6. !ifdef IC_PM
  7. LIBS =
  8. ODIR=.\os2
  9. RC=rc.exe -DIC_PM
  10. RCOUT=
  11. !else
  12. LIBS =
  13. ODIR=.\win
  14. RC=irc.exe
  15. RCOUT=-Fo
  16. !endif
  17. ORES=$(ODIR)\tstdlg.res
  18.  
  19. OBJS = $(ODIR)\tstdlg.obj $(ODIR)\dialog.obj $(ODIR)\dlghndlr.obj
  20.  
  21. ALL : CREATEDIR $(ODIR)\tstdlg.exe
  22.  
  23. $(ODIR)\tstdlg.exe : $(OBJS) $(ORES)
  24. !ifdef IC_PM
  25.    icc $(CFLAGS) /B"$(LFLAGS)" $(LIBS) /Fe$@ $(OBJS)
  26.    $(RC) $(ORES) $@
  27. !else
  28.    icc $(CFLAGS) /B"$(LFLAGS)" $(LIBS) /Fe$@ $**
  29. !endif
  30.  
  31. tstdlg.cpp   :
  32. dialog.cpp   : dialog.hpp dlghndlr.hpp
  33. dlghndlr.cpp : dlghndlr.hpp
  34.  
  35. {.}.cpp{$(ODIR)}.obj:
  36.    icc $(CFLAGS) /C+ /Fo$@ $(@B).cpp
  37.  
  38. $(ORES): tstdlg.rc
  39.    $(RC) -r $(@B).rc $(RCOUT)$@
  40.  
  41. CREATEDIR:
  42.   @if not exist $(ODIR)* md $(ODIR)
  43.