home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
drdobbs
/
1991
/
08
/
dflat5
/
makefile
< prev
next >
Wrap
Makefile
|
1991-06-27
|
5KB
|
129 lines
#-------------------------------------------------------------------
# D - F L A T M A K E F I L E
#-------------------------------------------------------------------
all : memopad.exe huffc.exe
#-------------------------------------------------------------------
# Set MSC = 1 to compile with Microsoft C
# Set BORLAND_CPP = 1 macro to compile with Borland C++ 2.0
# Set TURBOC = 1 to compile with Turbo C 2.0
#-------------------------------------------------------------------
MSC = 0
BORLAND_CPP = 0
TURBOC = 1
#------------------------------------------------
# NOTE: Set DRIVE to match where you installed your compiler
#------------------------------------------------
DRIVE = c
#-------------------------------------------------------------------
# Delete the TESTING macro to eliminate the D-Flat Log and the Reload
# Help file selection on the Help menu
#-------------------------------------------------------------------
TESTING = TESTING_DFLAT
#-------------------------------------------------------------------
!if $(MSC) == 1
#------------------------------------------------
# Microsoft C 6.0
#------------------------------------------------
MODEL = L
#------------------------------------------------
# NOTE: Delete the DEBUG and LINKDEBUG macros to
# build without debugging information in the .EXE
#------------------------------------------------
DEBUG = /Zi
LINKDEBUG = /CO
COMPILE = cl $(DEBUG) /DMSC /D$(TESTING) /c /W4 /Gs /A$(MODEL)
LINK = link $(LINKDEBUG) /ST:8192
#------------------------------------------------
!endif
!if $(BORLAND_CPP) == 1
#------------------------------------------------
# Borland C++ 2.0
#------------------------------------------------
MODEL = l
#------------------------------------------------
# NOTE: Delete the DEBUG and LINKDEBUG macros to
# build without debugging information in the .EXE
#------------------------------------------------
DEBUG = -v
LINKDEBUG = /m /v
#------------------------------------------------
# NOTE: Temporary file space
#------------------------------------------------
HEADERS=f:\temp\tcdef.sym
#------------------------------------------------
# NOTE: use bcc if you do not have extended memory
#------------------------------------------------
COMPILE = bccx $(DEBUG) -D$(TESTING) -c -m$(MODEL) -H=$(HEADERS)
LINK= tlink $(LINKDEBUG) $(DRIVE):\borlandc\lib\c0$(MODEL)
LIBS= $(DRIVE):\borlandc\lib\c$(MODEL)
#------------------------------------------------
!endif
!if $(TURBOC) == 1
#------------------------------------------------
# Turbo C 2.0
#------------------------------------------------
MODEL = l
#------------------------------------------------
# NOTE: Delete the DEBUG and LINKDEBUG macros to
# build without debugging information in the .EXE
#------------------------------------------------
DEBUG = -v
LINKDEBUG = /m /v
COMPILE = tcc $(DEBUG) -D$(TESTING) -c -m$(MODEL)
LINK= tlink $(LINKDEBUG) $(DRIVE):\tc\lib\c0$(MODEL)
LIBS= $(DRIVE):\tc\lib\c$(MODEL)
#------------------------------------------------
!endif
.c.obj:
$(COMPILE) $*.c
memopad.exe : memopad.obj window.obj video.obj message.obj \
mouse.obj console.obj textbox.obj listbox.obj \
normal.obj config.obj menu.obj menubar.obj popdown.obj \
rect.obj applicat.obj keys.obj sysmenu.obj menus.obj \
editbox.obj dialogs.obj dialbox.obj button.obj \
fileopen.obj msgbox.obj helpbox.obj log.obj lists.obj \
statbar.obj decomp.obj htree.obj
!if $(MSC)
$(LINK) @memopad.lnk,$*,$*;
!else
$(LINK) @memopad.lnk,$*.exe,$*,$(LIBS)
!endif
huffc.exe : huffc.obj htree.obj
!if $(MSC)
$(LINK) huffc htree,$*,$*;
!else
$(LINK) huffc htree,$*.exe,$*,$(LIBS)
!endif
#-------------------------------------------------------------------
# NOTE: Build the NOTEPAD.EXE program with the small memory model
# (MODEL = S for Microsoft C,
# MODEL = s for Turbo C 2.0 and Borland C++ 2.0)
# Take out most of the INCLUDE_ defines in dflat.h.
# Retain INCLUDE_CLIPBOARD, INCLUDE_SCROLLBARS, and
# INCLUDE_MULTILINE
#-------------------------------------------------------------------
notepad.exe : notepad.obj window.obj video.obj message.obj \
mouse.obj console.obj textbox.obj listbox.obj \
normal.obj config.obj menu.obj menubar.obj popdown.obj \
rect.obj applicat.obj keys.obj menus.obj editbox.obj \
msgbox.obj lists.obj
!if $(MSC)
$(LINK) @notepad.lnk,$*,$*;
!else
$(LINK) @notepad.lnk,$*.exe,$*,$(LIBS)
!endif