home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
window
/
mewel12.lzh
/
DE
< prev
next >
Wrap
Text File
|
1989-06-28
|
2KB
|
60 lines
############################################################################
# #
# MAKEFILE for the MEWEL Dialog Editor (DE.EXE) #
# #
############################################################################
# Compiler is 'M' for Microsoft, 'T' for Borland Turbo C
COMPILER = M
# Model is
# 1) Microsoft C - 'M' for Medium, 'L' for Large
# 2) Turbo C - 'm' for medium, 'l' for large
MODEL = L
# Microsoft C macros
CC = cl
OPT = /Oait
DEBUG = /Od /Zi
CFLAGS = /c /DMSC=1 /DDOS /DNEWCREATE /A$(MODEL) /Zp /J $(OPT)
ASM = masm
# LMODEL should be 1 if you want large data
ASMFLAGS = /DLMODEL=1 /DTC=0
LIB = lib
LINK = link
LFLAGS = /seg:192
# Borland Turbo C macros
#CC = tcc
# Optimization : -G favors speed over size, -O improves jumps & loops
#OPT = -G -O
#DEBUG = -v
#CFLAGS = $(DEBUG) -c -d -f- -k -N -K -m$(MODEL) -DTC -w-aus -w-pia -w-stu -w-rvl -w-par
#ASM = tasm
#ASMFLAGS = /dTC=1 /dLMODEL=1 /mx
#LIB = tlib
#LINK = tlink
#LFLAGS = /v
# We tack the compiler and model onto the end of the library name, so
# the library for Borland's Turbo C, medium model would be called WINLIBTM.LIB
# Inference rules for C and ASM files
.c.obj :
$(CC) $(CFLAGS) $*.c
.asm.obj :
$(ASM) $(ASMFLAGS) $*;
DEMO = de
$(DEMO).obj : $(DEMO).c
$(DEMO).exe : $(DEMO).obj
# Microsoft
$(LINK) $(LFLAGS) $(DEMO),$(DEMO),nul,winlib$(COMPILER)$(MODEL).lib
# Turbo C
# $(LINK) $(LFLAGS) e:\tc\lib\c0$(MODEL) $(DEMO),\
# $(DEMO),nul,e:\tc\lib\c$(MODEL)+winlib$(COMPILER)$(MODEL)
# tlink /x /v @$(DEMO).lnk