############################################################################
#                                                                          #
#  MAKEFILE for the MEWEL Dialog Editor (DE.EXE)                           #
#                                                                          #
############################################################################

APP = menugen

# 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=1 /A$(MODEL) /Zp /J $(OPT)
ASM = masm 
# LMODEL should be 1 if you want large data
ASMFLAGS = /DLMODEL=0 /DTC=0
LIB = lib
LINK = link
LFLAGS = /seg:192 /pac /f

# 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) $*;

.rc.res  :
	rc $*


menugen.res : menugen.rc

menugen.obj : menugen.c

menugen.exe : menugen.obj menugen.res
#  $(LINK) $(LFLAGS) @menugen.lnk
   $(LINK) $(LFLAGS) menugen,menugen,nul,winlibml,nul.def;
