Category : Miscellaneous Language Source Code
Archive   : MAKE15.ZIP
Filename : DEFAULT.MK

 
Output of file : DEFAULT.MK contained in archive : MAKE15.ZIP
### this is the default makefile for DOS: default.mk

SUFFIXES = .c .asm .l .y .ec
.SUFFIXES : $(SUFFIXES)

# ASM section
AS = masm
ASFLAGS = /mx
COMPILE.s= $(AS) $(ASFLAGS)
.asm.exe :
$(COMPILE.s) $<;
$(LINK.c) -o $@ $*.obj $(LDFLAGS)
$(RM) $*.obj
.asm.obj :
$(COMPILE.s) $<;
.asm.o :
$(COMPILE.s) $<;
mv $*.obj $*.o

# C section
CC = cl -A$(MODEL)
CFLAGS = /Ox /G2
COMPILE.c= $(CC) $(CFLAGS) -c
.c.exe :
$(LINK.c) -o $@ $< $(LDFLAGS)
$(RM) $*.obj
.c.o :
$(COMPILE.c) /Fo$*.o $<
.c.obj :
$(COMPILE.c) $<

# D section (ANSI C declaration headers)
.c.d :
echo #ifndef NOPROTOTYPES > $*.tmp
$(CC) -DNOPROTOTYPES -Zg $< >> $*.tmp
echo #endif >> $*.tmp
+updexhdr $*.tmp $*.d
$(RM) $*.tmp

# I section (preprocessed C files)
.c.i :
$(COMPILE.c) -P $<

# ESQL/C section
ESQL = esql
EFLAGS =
COMPILE.e= $(ESQL) $(EFLAGS)
.ec.exe :
$(COMPILE.e) -e $<
$(LINK.c) -o $@ $*.c $(LDFLAGS)
$(RM) $*.obj $*.c
.ec.o :
$(COMPILE.e) -e $<
$(COMPILE.c) /Fo$*.o $*.c
$(RM) $*.c
.ec.obj :
$(COMPILE.e) -e $<
$(COMPILE.c) $*.c
$(RM) $*.c
.ec.c :
$(COMPILE.e) -e $<

# Lex section
LEX = flex
LFLAGS = -I
LEX.l = $(LEX) $(LFLAGS) -t
.l.exe :
$(LEX.l) $< > $*.c
$(LINK.c) -o $@ $*.c $(LDFLAGS)
$(RM) $*.obj $*.c
.l.c :
$(LEX.l) $< > $@
.l.o :
$(LEX.l) $< > $*.c
$(COMPILE.c) /Fo$*.o $*.c
$(RM) $*.c
.l.obj :
$(LEX.l) $< > $*.c
$(COMPILE.c) $*.c
$(RM) $*.c

# YACC Section
YACC = bison
YFLAGS =
YACC.y = $(YACC) $(YFLAGS)
.y.exe:
$(YACC.y) $<
$(LINK.c) -o $@ $*.c $(LDFLAGS)
$(RM) $*.obj $*.c
.y.h:
$(YACC.y) -d -y $<
$(RM) ytab.c
$(MV) ytab.h $@
.y.c:
$(YACC.y) $<
.y.o:
$(YACC.y) $<
$(COMPILE.c) /Fo$*.o $*.c
$(RM) $*.c
.y.obj:
$(YACC.y) $<
$(COMPILE.c) $*.c
$(RM) $*.c

# BSD Unix Misc section
#A = .a
#AR = ar
#ARFLAGS =
#BIN = /bin
#CDEBUG = -g
#CP = cp
#E =
#EDITOR = /usr/bin/vi
#GFLAGS =
#GET = get
#LDFLAGS =
#LD = ld
#LIBDIR =
#MAKE = make
#MKDEPEND = makedepend
#MODEL =
#MV = mv
#O = .o
#RANLIB = ranlib
#RM = rm -f
#SHELL = /bin/csh

# DOS Misc section
A = .lib
AR = lib
ARFLAGS =
BIN = C:\bin
CDEBUG = /Od /Zi
CP = cp
E = .exe
EDITOR = $(BIN)\vi
GFLAGS =
GET = echo cannot get
LDFLAGS = /link /noe /noi $(LIBS)
LD = $(CC) $(CFLAGS)
LIBDIR = c:\msc5.1\lib
LINK.c = $(CC) $(CFLAGS)
MAKE = make
MKDEPEND = mkdepend
MODEL = S
MV = mv
O = .o
RANLIB = echo cannot ranlib
RM = rm -f
SHELL = command /c


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : MAKE15.ZIP
Filename : DEFAULT.MK

  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/