home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
c
/
help.arc
/
MAKE.INI
< prev
next >
Wrap
Text File
|
1988-03-10
|
2KB
|
78 lines
# This is a sample `make.ini' file for NDMAKE v3.1. You will probably want
# to customize it for your system.
# Prints a help message.
# The order to search for rules and files is specified by .SUFFIXES
.SUFFIXES :
.SUFFIXES : .exe .com .obj .c .asm
# A few macros.
LIB = N:\1
INCLUDE = N:\1
MODEL = S
CFLAGS = /A$(MODEL)
CDEFINES =
CLIBS =
AFLAGS = /mx
ALIBS =
SETARGV = $(LIB)\$(MODEL)SETARGV
BINMODE = $(LIB)\$(MODEL)BINMODE
LFLAGS = /NOIGNORE
# A few universally useful targets. This first target is here in case
# you are using NDMAKE without a makefile and you type "make" with no
# arguments.
clean:
+-erase *.bak
+-erase *.map
.BEFORE:
@+echo NDMake: For help with make, use the command `make -h'
.AFTER:
@+echo NDMake: All done.
ASM = masm
CC = msc
CL = cl
LINK = link
EXE2BIN = exe2bin
CCMP = $(CC) $(CFLAGS) $(CDEFINES) /Fo$@ $?
CLINK = $(LINK) $<, $@, nul, $(LFLAGS) $(CLIBS)
# DEFAULT RULES
# To produce a `.obj' file from a `.asm' file.
.asm.obj:
$(ASM) $(AFLAGS) $*.asm;
# To produce a `.obj' file from a `.c' file.
.c.obj:
$(CCMP);
.obj.exe:
$(CLINK);
# To produce a `.exe' file from a `.asm' file.
.asm.exe:
$(ASM) $(AFLAGS) $*.asm;
$(LINK) $*.obj, $@, nul, $(ALIBS);
.asm.com:
$(ASM) $(AFLAGS) $*.asm;
$(LINK) $*.obj, $@, nul, $(ALIBS);
$(EXE2BIN) $*.exe $*.com
.exe.com:
$(EXE2BIN) $*.exe $*.com
# To produce a `.exe' file from a `.c' file.
.c.exe:
cl $(CFLAGS) $(CDEFINES) $*.c -link $(LFLAGS) $(CLIBS)