home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / thread / picalc / makefile next >
Makefile  |  1996-10-29  |  1KB  |  48 lines

  1. ################################################################
  2. # FILE NAME: makefile                                          #
  3. #                                                              #
  4. # DESCRIPTION:                                                 #
  5. #   makefile for "pi calculator" sample program                #
  6. #                                                              #
  7. # COPYRIGHT:                                                   #
  8. #   Licensed Materials - Property of Solution Frameworks       #
  9. #   Copyright (C) 1996, Solution Frameworks                    #
  10. #   All Rights Reserved                                        #
  11. ################################################################
  12. CFLAGS = /Ft- /Gd+ /Ge+ /Gm+ /Wall+gnr-ppc-ppt-uni-vft-
  13. INC    = /I..\pi /I..\userevt
  14. LFLAGS = /PM:PM
  15.  
  16. !ifdef IC_PM
  17. ODIR=.\os2
  18. !else
  19. ODIR=.\win
  20. !endif
  21.  
  22.  
  23. ALL :  CREATEDIR PI USEREVT $(ODIR)\picalc.exe
  24.  
  25. $(ODIR)\picalc.exe : $(ODIR)\picalc.obj \
  26.                      ..\pi\$(ODIR)\pi.obj \
  27.                      ..\userevt\$(ODIR)\userevt.obj
  28.    icc $(CFLAGS) /B"$(LFLAGS)" /Fe$@ $**
  29.  
  30. $(ODIR)\picalc.obj : picalc.cpp \
  31.                        ..\pi\pi.hpp \
  32.                        ..\userevt\userevt.hpp
  33.    icc $(CFLAGS) $(INC) /C+ /Fo$@ picalc.cpp
  34.  
  35. PI :
  36.   cd ..\pi
  37.   nmake
  38.   cd ..\picalc
  39.  
  40. USEREVT :
  41.   cd ..\userevt
  42.   nmake
  43.   cd ..\picalc
  44.  
  45. CREATEDIR:
  46.   @if not exist $(ODIR) md $(ODIR)
  47.  
  48.