# This makefile has been generated automatically by mwgenmakeC for
# compiling MFC application.

APOGEE = 1

SOURCES =  \
	autonum.c \
	break.c \
	chnutils.c \
	dispmain.c \
	dispmisc.c \
	disptext.c \
	dispul.c \
	dnutils.c \
	enumcore.c \
	hih.c \
	lnutils.c \
	lscontxt.c \
	lscrline.c \
	lscrsubl.c \
	lsdnfin.c \
	lsdnset.c \
	lsdntext.c \
	lsdsply.c \
	lsdssubl.c \
	lsensubl.c \
	lsenum.c \
	lsfetch.c \
	lsqcore.c \
	lsqline.c \
	lsqsubl.c \
	lssetdoc.c \
	lsstring.c \
	lssubset.c \
	lstfset.c \
	lstxtbr1.c \
	lstxtbrk.c \
	lstxtbrs.c \
	lstxtcmp.c \
	lstxtfmt.c \
	lstxtglf.c \
	lstxtini.c \
	lstxtjst.c \
	lstxtmap.c \
	lstxtmod.c \
	lstxtnti.c \
	lstxtqry.c \
	lstxtscl.c \
	lstxttab.c \
	lstxtwrd.c \
	ntiman.c \
	objhelp.c \
	prepdisp.c \
	qheap.c \
	robj.c \
	ruby.c \
	sobjhelp.c \
	sublutil.c \
	tabutils.c \
	tatenak.c \
	textenum.c \
	warichu.c \
	zqfromza.c \
	unixfunctions.c


# Warning: DLL based on MFC (compiled with _USRDLL flag) is not supported yet.
# This makefile is just for demo purpose.
## Original Windows DLL name:
WDLL = msls3
## Target Unix shared library:
DLL	= lib${WDLL}.${MW_SHARED_LIBRARY_SUFFIX}

CPP_OBJS = ${SOURCES:%.C=%.o}
DLLOBJS = ${CPP_OBJS:%.c=%.o}
DLL-EXPORTS = msls3.def
SRCS=${SOURCES}
WRESOURCE = msls.rc    # Windows resource
TRESOURCE = ${WDLL}.rxt   # Target X resource (must match DLL name)

## you may define the following variables
## RUN.dir      : the directory where you want the executables to go
## APP_CFLAGS   : additional compilation flags for C compiler
## APP_CCPPFLAGS: additional compilation flags for C++ compiler
## APP_DLLFLAGS : additional link flags
## MWINIT_DEFINES : list of -D<symbols> used to initialize
##        Mainwin in certain specific ways 
## 

__cplusplus = true

ifndef COMPILE_OPTION
COMPILE_OPTION = debug
endif

ifeq (${COMPILE_OPTION},debug)
    DEBUG_CFLAGS = -DDEBUG
endif

BINARY_RESOURCES = 1
RUN.dir = /vobs/ie4/drop/${MWCONFIG_NAME}_${COMPILE_OPTION}
APP_DLLFLAGS = -L${RUN.dir} -lole32 -loleaut32

APP_CFLAGS = ${DEBUG_CFLAGS} -DUNIX -DNOOBJECT -DMW_MSCOMPATIBLE_STRUCTS \
             -DUNICODE -I${_NTROOT}/private/windows/inc -I. -I../inci -I../lsinc \
	     -Di386=1 -DSTD_CAL -DCONDITION_HANDLING=1 -DNT_UP=1 \
	     -DNT_INST=0 -DWIN32=100 -D_NT1X_=100 -DWINNT=1 -D_WIN32_WINNT=0x0400 \
	     -DWINVER=0x0400 -D_WIN32_IE=0x0300 -DWIN32_LEAN_AND_MEAN=1 -DDBG=1 \
	     -DDEVL=1 -DFPO=0 -D_DLL=1 -D_MT=1 -FId:\nt\public\sdk\inc\warning.h -UWINVER

include $(MWHOME)/make.rules.simple

CUSTOM_ALL_TARGET = check_config

check_config:
	@if [ "${MWTECHNO}" != 32 ]; then \
		echo "An MFC400 application must be compiled in MW32 mode."; \
		exit 1; \
	fi

ifeq (${MW_CLEARMAKE},no)
include depend-$(MWCONFIG_NAME)
endif
