home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / powergui / thread / threads / makefile < prev    next >
Encoding:
Makefile  |  1996-10-29  |  1.7 KB  |  59 lines

  1. ################################################################
  2. # FILE NAME: makefile                                          #
  3. #                                                              #
  4. # DESCRIPTION:                                                 #
  5. #   makefile for the ultimate IThread demo 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    =
  14. LFLAGS = /PM:PM
  15.  
  16. !ifdef IC_PM
  17. ODIR=.\os2
  18. ORES=$(ODIR)\threads.res
  19. RC=rc.exe -DIC_PM
  20. !else
  21. ODIR=.\win
  22. ORES=
  23. RC=irc.exe -Fo$(ODIR)\threads.res
  24. !endif
  25.  
  26. ALL : CREATEDIR SIGNAL $(ODIR)\threads.exe
  27.  
  28. OBJLIST = $(ODIR)\threads.obj \
  29.           $(ODIR)\thread.obj  \
  30.           ..\signal\$(ODIR)\signal.obj
  31.  
  32. $(ODIR)\threads.exe :  $(OBJLIST) $(ODIR)\threads.res
  33. !ifdef IC_PM
  34.    icc $(CFLAGS) /B"$(LFLAGS)" /Fe$@ $(OBJLIST)
  35.    $(RC) $(ODIR)\threads.res $@
  36. !else
  37.    icc $(CFLAGS) /B"$(LFLAGS)" /Fe$@ $**
  38. !endif
  39.  
  40. $(ODIR)\threads.obj: threads.cpp threads.h thread.hpp cmdroutr.hpp
  41.    icc $(CFLAGS) /C+ /Fo$@ threads.cpp
  42.  
  43. $(ODIR)\thread.obj: threads.cpp threads.h thread.hpp ..\signal\signal.hpp
  44.    icc $(CFLAGS) /I..\signal /C+ /Fo$@ thread.cpp
  45.  
  46. $(ODIR)\threads.res:  threads.rc \
  47.                       threads.h \
  48.  
  49.    $(RC) -r threads.rc $(ORES)
  50.  
  51. CREATEDIR:
  52.   @if not exist $(ODIR) md $(ODIR)
  53.  
  54. SIGNAL :
  55.   cd ..\signal
  56.   nmake
  57.   cd ..\threads
  58.  
  59.