home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / cnr / popup / makefile next >
Encoding:
Makefile  |  1996-10-29  |  812 b   |  35 lines

  1. ## Container Control - Pop Up Menu Example
  2.  
  3. CFLAGS = /Ft- /Gd+ /Ge+ /Gm+ /Wall+gnr-ppc-ppt-uni-vft-
  4. LFLAGS = /PM:PM
  5.  
  6. !ifdef IC_PM
  7. ODIR=.\os2
  8. ORES=$(ODIR)\popup.res
  9. RC=rc.exe -DIC_PM
  10. !else
  11. ODIR=.\win
  12. ORES=
  13. RC=irc.exe -Fo$(ODIR)\popup.res
  14. !endif
  15.  
  16.  
  17. ALL : CREATEDIR   $(ODIR)\popup.exe
  18.  
  19. $(ODIR)\popup.exe :  $(ODIR)\popup.obj $(ODIR)\popup.res
  20. !ifdef IC_PM
  21.    icc $(CFLAGS) /B"$(LFLAGS)" /Fe$(ODIR)\popup.exe $(ODIR)\popup.obj
  22.    $(RC) $(ODIR)\popup.res  $(ODIR)\popup.exe
  23. !else
  24.    icc $(CFLAGS) /B"$(LFLAGS)" /Fe$(ODIR)\popup.exe  $(ODIR)\popup.obj $(ODIR)\popup.res
  25. !endif
  26.  
  27. $(ODIR)\popup.obj: popup.cpp popup.h
  28.    icc $(CFLAGS) /C+  /Fo$(ODIR)\popup.obj  popup.cpp
  29.  
  30. $(ODIR)\popup.res:  popup.rc popup.h
  31.    $(RC) -r popup.rc $(ORES)
  32.  
  33. CREATEDIR:
  34.   @if not exist $(ODIR)* md $(ODIR)
  35.