home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / msysjour / ms / s12349 / test < prev    next >
Text File  |  1989-06-06  |  1KB  |  60 lines

  1. #
  2. #**     makefile for OS/2 sample device driver
  3. #
  4.  
  5. ASM=masm
  6.  
  7. #       Definitions for assembler
  8.  
  9. #       To make debug version use --
  10. #       AFLAGS= /Mx /t /P /DDEBUG /L
  11.  
  12. #       To make non-debug version use --
  13. #       AFLAGS= /Mx /t /P
  14.  
  15. #       /Mx -- perserve case sensitivity in external names
  16. #       /t  -- "terse" mode, don't print out unneeded messages
  17. #       /P  -- check for IMPURE code
  18. #       /L  -- Create a listing file
  19. #       /n  -- Suppress tables in listing
  20. #       /Dsymbol  -- Define assembler symbol
  21.  
  22. AFLAGS= /Mx /T /P /L /DDEBUG
  23.  
  24. #       Definitions for new style linker
  25. #       /map -- make a map file
  26.  
  27. LINK=link
  28. LFLAGS=/nod /noi /map
  29. LIBS= e:\pmsdk\lib\doscalls.lib
  30.  
  31. #       List of object files required
  32. #       ORDER IS IMPORTANT!
  33. #       "test_i.obj" must be the last
  34. #
  35.  
  36. OBJS=   test.obj test_hi.obj test_i.obj
  37.  
  38. #       Production rules
  39.  
  40. test.obj: test.asm
  41.         $(ASM) $(AFLAGS) test.asm, test.obj;
  42.  
  43. test_hi.obj: test_hi.asm
  44.         $(ASM) $(AFLAGS) test_hi.asm, test_hi.obj;
  45.  
  46. test_i.obj: test_i.asm
  47.         $(ASM) $(AFLAGS) test_i.asm, test_i.obj;
  48.  
  49.  
  50. #
  51. #  build the driver
  52. #
  53.  
  54.  
  55. test.sys: $(OBJS)
  56.         $(LINK) $(LFLAGS) $(OBJS),test.sys,,$(LIBS), test.def;
  57.  
  58. test.sym: test.map
  59.         e:\devdrvrs\work\dd\bin\mapsym test
  60.