home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
drdobbs
/
1991
/
06
/
dflat3
/
makefile
< prev
next >
Wrap
Makefile
|
1991-05-19
|
1KB
|
48 lines
#------------------------------------------------
# Comment out the MSC macro to compile with Turbo C
#------------------------------------------------
MSC = 1
FULL = BUILD_FULL_DFLAT
!if $(MSC)
#------------------------------------------------
# Microsoft C 6.0
#------------------------------------------------
DEBUG = /Zi
LINKDEBUG = /CO
MODEL = L
COMPILE = cl $(DEBUG) /DMSC /D$(FULL) /c /W4 /Gs /A$(MODEL)
LINK = link $(LINKDEBUG)
!else
#------------------------------------------------
# Turbo C 2.0 or greater
#------------------------------------------------
DEBUG = -v
LINKDEBUG = /m /v
DRIVE = c
MODEL = l
COMPILE = tcc $(DEBUG) -D$(FULL) -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 \
classdef.obj rect.obj applicat.obj keys.obj sysmenu.obj \
menus.obj editbox.obj dialogs.obj dialbox.obj button.obj \
fileopen.obj msgbox.obj help.obj log.obj
!if $(MSC)
$(LINK) memopad @memopad.lnk,$*,$*;
!else
$(LINK) memopad @memopad.lnk,$*.exe,$*,$(LIBS)
!endif