home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / cmdline / setlink / makefile next >
Encoding:
Makefile  |  1989-08-04  |  935 b   |  64 lines

  1. #
  2. #  Memory MoDeL is TINY
  3. #
  4. !if !$d(MDL)
  5. MDL=t
  6. !endif
  7.  
  8. #
  9. #  List of object files
  10. #
  11. OBJS=setlink.obj
  12.  
  13. NAME=setlink
  14. FLAGS= -O -d -Z -f-
  15.  
  16. #
  17. # Memory model adjustments
  18. #
  19. !if $(MDL)==t
  20. COMFILE=$(NAME).com    #make COM if model is tiny
  21. LINK_FLAGS= /c/x/t
  22. LIBFILE=cs             #TINY model uses SMALL model LIBFILE
  23. !else
  24. COMFILE=$(NAME).exe    #make EXE if model is not tiny
  25. LINK_FLAGS= /c/x
  26. LIBFILE=c$(MDL)
  27. !endif
  28.  
  29.  
  30. #
  31. #  Other defines
  32. #
  33. TURBO_DIR=c:\usr\tc
  34. INCLUDE=$(TURBO_DIR)\include
  35. LIB=$(TURBO_DIR)\lib
  36.  
  37. #
  38. #  Rule for compiling C sources
  39. #
  40. .c.obj:
  41.   tcc -c -I$(INCLUDE) -m$(MDL) $(FLAGS) $<
  42.  
  43.  
  44. #
  45. #  Rule for linking COM or EXE file
  46. #
  47. $(COMFILE): $(OBJS)
  48.  
  49.   setlink -n $(LINK_FLAGS) $(LIB)\c0$(MDL)+
  50.   setlink -a $(OBJS)
  51.   setlink -a $(NAME)
  52.   setlink -a $(NAME)
  53.   setlink -a $(LIB)\$(LIBFILE)
  54.  
  55.   tlink @makefile.lnk
  56.   be beep
  57.  
  58.  
  59. #
  60. # Source file dependencies
  61. #
  62. setlink.obj:
  63.  
  64.