home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / WATTCP / MSWATTCP.ZIP / ELIB / MAKEFILE < prev    next >
Encoding:
Text File  |  1993-04-19  |  1.5 KB  |  61 lines

  1. #
  2. # File: makefile
  3. #
  4. # 16-Jun-92 lr
  5. #
  6. # ELIB - library of MSC/TC compatible functions
  7. #        and old MASM/new MASM/TASM compatible too
  8. # 23-dec-91 lr Ported to MS C 6.0
  9. #
  10. # Files:
  11. #   cout.c      : print diagnostic messages
  12. #   inchksum.asm: compute checksums
  13. #   intel.asm   : do type conversions
  14. #   macros.hsm  : macros for assembly files
  15. #   makefile    : this makefile
  16. #   masmdefs.hsm: macros to use C parameters. Suspect nobody uses them
  17. #   model.hsm   : other macros for assembler
  18. #   qmove.asm   : quick move routines. Nobody uses any more
  19. #   qmsg.c      : diagnostic with direct console writes.
  20. #   timeout.asm : timer handling routines
  21. #
  22. #
  23. # Currently this makes a library of small model functions,
  24. # to make large model, change MODEL=-ml and AFLAGS=... -DFUNC_L=1
  25. #
  26. #CFLAGS= -a -d -f- -G -O -Z -DMSDOS -IL:\borlandc\include
  27. #CFLAGS= -qc -W4 -Od -DMSDOS -Zi -Zd -I../include
  28. INCDIR= ..\include
  29. CFLAGS= -W4 -Od -DMSDOS -I$(INCDIR)
  30.  
  31. MODELS=-AS
  32. MODELL=-AL
  33.  
  34. # Assembler flags
  35. AFLAGS=-Mx -t -Zi -Zd -I$(INCDIR)
  36. AMODELS=-dFUNC_L=0
  37. AMODELL=-dFUNC_L=1
  38.  
  39. # Define PC-specific include file
  40.  
  41. .c.obj:
  42.     cl -c $(MODELS) $(CFLAGS) $*.c
  43.     lib ..\lib\wattcpsm -+$*;
  44.     cl -c $(MODELL) $(CFLAGS) $*.c
  45.     lib ..\lib\wattcplg -+$*;
  46.  
  47. .asm.obj:
  48.     masm $(AFLAGS) $(AMODELS) $*;
  49.     lib ..\lib\wattcpsm -+$*;
  50.     masm $(AFLAGS) $(AMODELL) $*;
  51.     lib ..\lib\wattcplg -+$*;
  52.  
  53. start: elib.lib
  54.  
  55. elib.lib: \
  56.     cout.obj \
  57.     intel.obj \
  58.     inchksum.obj \
  59.     qmsg.obj \
  60.     timeout.obj
  61.