home *** CD-ROM | disk | FTP | other *** search
Makefile | 1989-08-04 | 935 b | 64 lines |
- #
- # Memory MoDeL is TINY
- #
- !if !$d(MDL)
- MDL=t
- !endif
-
- #
- # List of object files
- #
- OBJS=setlink.obj
-
- NAME=setlink
- FLAGS= -O -d -Z -f-
-
- #
- # Memory model adjustments
- #
- !if $(MDL)==t
- COMFILE=$(NAME).com #make COM if model is tiny
- LINK_FLAGS= /c/x/t
- LIBFILE=cs #TINY model uses SMALL model LIBFILE
- !else
- COMFILE=$(NAME).exe #make EXE if model is not tiny
- LINK_FLAGS= /c/x
- LIBFILE=c$(MDL)
- !endif
-
-
- #
- # Other defines
- #
- TURBO_DIR=c:\usr\tc
- INCLUDE=$(TURBO_DIR)\include
- LIB=$(TURBO_DIR)\lib
-
- #
- # Rule for compiling C sources
- #
- .c.obj:
- tcc -c -I$(INCLUDE) -m$(MDL) $(FLAGS) $<
-
-
- #
- # Rule for linking COM or EXE file
- #
- $(COMFILE): $(OBJS)
-
- setlink -n $(LINK_FLAGS) $(LIB)\c0$(MDL)+
- setlink -a $(OBJS)
- setlink -a $(NAME)
- setlink -a $(NAME)
- setlink -a $(LIB)\$(LIBFILE)
-
- tlink @makefile.lnk
- be beep
-
-
- #
- # Source file dependencies
- #
- setlink.obj:
-