Category : C Source Code
Archive   : HACKSRC.ZIP
Filename : MAKE.INI

 
Output of file : MAKE.INI contained in archive : HACKSRC.ZIP
# This is a sample `make.ini' file for NDMAKE v3.7. You will probably want
# to customize it for your system.



# The order to search for rules and files is specified by .SUFFIXES
.SUFFIXES : .exe .obj .c .for .asm

# A few macros.
CFLAGS = -A$(MODEL)
MODEL = S
SETARGV = $(LIB)\$(MODEL)SETARGV
LIBS =
BIN =
LFLAGS =

# A universally useful target.
clean:
+-erase *.bak
+-erase *.map

# .BEFORE and .AFTER can be used to turn DPATH off and on.
.BEFORE:; @+echo For help with ndmake, use the command `make -h'
.AFTER:; @+echo All done.


# DEFAULT RULES
# To produce a `.obj' file from a `.asm' file using MASM.
.asm.obj:; masm $*.asm;

# To produce a `.obj' file from a `.c' file using Microsoft C.
.c.obj:; cl $(CFLAGS) -c $*.c

# To produce a `.obj' file from a `.for' file using Microsoft Fortran.
.for.obj:
for1 $*.for;
pas2

# To produce a `.exe' file from an `.obj' file. Note that there is a
# problem because LIBS may be different for linking `.obj' files
# produced by different compilers (C, FORTRAN, PASCAL, etc). To avoid
# this problem you may want to have the C compiler produce `.cbj' files,
# the FORTRAN compiler produce `.fbj' files, etc. Then you could write
# specific rules for `.cbj.exe' and `.fbj.exe' which would use the correct
# libraries.
.obj.exe:
link $*.obj $(SETARGV), $@,, $(LIBS) $(LFLAGS);

# To produce a `.exe' file from a `.asm' file.
.asm.exe:
masm $*.asm;
link $*.obj, $@,, $(LIBS)
erase $*.obj

# To produce a `.exe' file from a `.c' file.
.c.exe:
cl $(CFLAGS) -c $*.c
link $*.obj $(SETARGV), $@,, $(LIBS) $(LFLAGS)
erase $*.obj

# To produce a `.exe' file from a `.for' file.
.for.exe:
for1 $*.for;
pas2
link $*.obj, $@,, $(LIB)\FORTRAN.LIB
erase $*.obj


  3 Responses to “Category : C Source Code
Archive   : HACKSRC.ZIP
Filename : MAKE.INI

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/