home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / portio.zip / makefile next >
Makefile  |  1993-05-03  |  2KB  |  57 lines

  1. #===========================================================================
  2. # This make file will create the general utility files:
  3. #   portio.dll - Dynamic link library containing inp/outp/inpw/outpw
  4. #   portio.lib - Library for resolving references INTO the portio.dll
  5. #   portio.obj - Object file for statically linking inp/outp with programs
  6. #
  7. # It will also build the two example programs
  8. #   test.exe   - Test program to print "hello world" to LPT1 directly
  9. #                using the dynamic link module portio.dll
  10. #   test2.exe  - Test program to print "hello world" to LPT1 directly
  11. #                using statically linked versions of these routines
  12. #
  13. # Other files of interest:
  14. #   portio.h   - Include file with appropriate definitions of inp/...
  15. #   test.c     - The test program (only linking differences with test2)
  16. #
  17. # ICC is used as the C compiler and for invoking the linker.  Map files
  18. # are generated though unnecessary. 
  19. #   
  20. # Software Versions:
  21. #     MASM   - Microsoft    Version 5.1
  22. #     ICC    - IBM CSET/2   Version 1.0   Patch level 42
  23. #     IMPLIB - IBM ToolKt20 Version 2.00
  24. #===========================================================================
  25.  
  26. #--------------------------------------------------
  27. # Set compilers/assemblers and options
  28. #
  29. # ICC options - no logo, all warnings, 486 optimize
  30. # masm options - Preserve case in external names
  31. #--------------------------------------------------
  32. ASM  = masm
  33. CC   = icc
  34. ICC  = -Q+ -W3 -Kb+ -G4
  35. MASM = /Mx
  36.  
  37.  
  38. DEFAULT: portio.dll portio.lib test.exe test2.exe
  39.  
  40. portio.obj : portio.asm
  41.     $(ASM) $(MASM) portio.asm;
  42.  
  43. portio.dll : portio.obj portio.def
  44.     $(CC) $(ICC) /Fmportio.map /Feportio.dll portio.obj portio.def
  45.  
  46. portio.lib : portio.def
  47.     implib portio.lib portio.def
  48.  
  49. test.obj : test.c
  50.     $(CC) $(ICC) -c test.c
  51.  
  52. test.exe : test.obj portio.lib
  53.     $(CC) $(ICC) -Fmtest.map -Fetest.exe $**
  54.  
  55. test2.exe : test.obj portio.obj test2.def
  56.     $(CC) $(ICC) -Fmtest2.map -Fetest2.exe $**
  57.