home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / nb_agent / makefile.ove next >
Makefile  |  1992-07-09  |  1KB  |  59 lines

  1. #
  2. #       makefile for OS/2 Toolkit sample program
  3. #
  4. #-----------------------------------------------
  5. #       Definitions for MSC 5.1 Compiler
  6. #       /c              -- compile only (suppress linking)
  7. #       /A$(model)      -- Specifies memory model
  8. #       /Gs2            -- Disable stack probes, use 286 instructions
  9. #       /Zl             -- Remove default library info
  10. #       /DOS2           -- OS/2 environment
  11. #       /DDDL           -- use of DDL
  12. #       /W3             -- Maximum warning level
  13. #-----------------------------------------------
  14. #
  15. # model can be = lfu - large code, far  data, SS != DS
  16. #                lnu - large code, near data, SS != DS
  17. #                sfu - small code, far  data, SS != DS
  18. #                snu - small code, near data, SS != DS
  19. #
  20. # See MTDYNA.DOC for more details on this subject
  21. #
  22. model=lfu
  23. #
  24. # include paths - use multi-thread include files
  25. #
  26. XLNPATH=\xln\toolkit
  27. TK_INCL=$(XLNPATH)\include
  28. INCLUDE=-I. -I$(TK_INCL) -I\msc51\include\mt
  29. #
  30. # libpaths should be set in the LIB environment string
  31. #
  32. XLNLIBS=bsd43.lib crtlib.lib
  33. MSLIBS=doscalls.lib
  34. ALL_LIBS=$(XLNLIBS) $(MSLIBS)
  35. #
  36. # compile flags
  37. #
  38. CFLAGS=  /c /A$(model) /Ox /Zl /Gs2 /DDLL /DOS2 /W3 $(INCLUDE)
  39. #
  40. # link flags
  41. #
  42. LFLAGS= /NOD /MAP /NOI
  43. LINKCMD=$(LFLAGS) $** + \xln\toolkit\os2lib\crtexe.obj,$@,$*.map,$(ALL_LIBS)
  44.  
  45.  
  46. .c.obj:
  47.         cl $(CFLAGS) $*.c > $*.err
  48.  
  49. nba.obj:    nba.c    nba.h     name.h
  50.  
  51. ##### Link commands ######
  52.  
  53. nba:     nba.obj
  54.     link $(LINKCMD);
  55.     markexe WINDOWCOMPAT nba.exe
  56.  
  57.  
  58.  
  59.