home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pmstabar.zip / makefile < prev    next >
Makefile  |  2002-01-27  |  1KB  |  64 lines

  1. # To add new extensions to the inference rules uncomment and redefine this:
  2. #.SUFFIXES:
  3. #
  4. #.SUFFIXES: \
  5. #    .C .obj .rc .res 
  6.  
  7. # compiler, linker, resource compiler, resource binder MACRO
  8.  
  9. CC = icc.exe
  10. CL = ilink.exe
  11. RC = rc.exe
  12. RB = rc.exe
  13.  
  14. # compiler and linker flags
  15. # Debug version
  16. !ifdef DEBUG
  17. # DLL version (subsystem)
  18. !ifdef DLL
  19. CFLAGS = /Ss /Ti /Rn /Ge- /G5 /C
  20. LFLAGS = /DE /E:2 /PM:PM /PACKD /A:4 /OPTF /NOL /M /L
  21. # EXE version (subsystem)
  22. !else
  23. CFLAGS = /Ss /Ti /Rn  /G5 /C
  24. LFLAGS = /DE /E:2 /PM:PM /PACKD /A:4 /OPTF /NOL /M /L
  25. !endif
  26. # RELEASE version
  27. !else
  28. # DLL version (subsystem)
  29. !ifdef DLL
  30. CFLAGS = /Ss /O /Oc /Ol /Rn /Ge- /G5 /C
  31. LFLAGS = /E:2 /PM:PM /PACKD /A:4 /OPTF /NOL /M /L
  32. # EXE version (subsystem)
  33. !else
  34. CFLAGS = /Ss /O /Oc /Ol /Rn  /G5 /C
  35. LFLAGS = /E:2 /PM:PM /PACKD /A:4 /OPTF /NOL /M /L
  36. !endif
  37. !endif
  38.  
  39. RCFLAGS = -r
  40. RBFLAGS = -x2
  41.  
  42. .rc.res:
  43.    $(RC) $(RCFLAGS) $<
  44.  
  45. .C.obj:
  46.    $(CC) $(CFLAGS) $<
  47.  
  48. all: bar.exe
  49.  
  50. bar.exe: ctrlutil.obj superclass.obj bar.res
  51.     $(CL) @<<
  52.     $(LFLAGS)
  53.     /O:bar.exe
  54.     ctrlutil.obj
  55.     superclass.obj
  56.     <<
  57.     $(RB) $(RBFLAGS) bar.res
  58.  
  59. bar.res: bar.rc superclass.h
  60.  
  61. ctrlutil.obj: ctrlutil.C dllmain.h ApiExPM.h ctrlutil.h
  62.  
  63. superclass.obj: superclass.C dllmain.h superclass.h ApiExPM.h ctrlutil.h
  64.