Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

107 lines
3.3 KiB

##************************************************************************
##**
##** THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
##** ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
##** TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR
##** A PARTICULAR PURPOSE.
##**
##** Copyright (c) 1992-1995 Microsoft Corporation
##**
##** makefile.nt
##**
##** to build a debug version:
##** NMAKE -f makefile.nt
##** to build a non debug version:
##** NMAKE -f makefile.nt DEBUG=NO
##**
##************************************************************************
# Nmake macros for building Windows 32-Bit apps
!include <ntwin32.mak>
!if "$(DEBUG)" == "NO"
mydebug =
mylinkdebug =
rcdebug =
!else
mydebug = -DDEBUG $(cdebug)
mylinkdebug = $(linkdebug)
rcdebug = -DDEBUG
!endif
all: msmcivcr.exe mcivis32.dll
#
# Update the object files if necessary
#
mcivisca.obj: mcivisca.c mcivisca.h common.h mcivis32.def
$(cc) $(cflags) $(cvarsdll) $(mydebug) mcivisca.c
mcicmds.obj: mcicmds.c mcivisca.h common.h mcivis32.def
$(cc) $(cflags) $(cvarsdll) $(mydebug) mcicmds.c
viscamsg.obj: viscamsg.c mcivisca.h common.h mcivis32.def
$(cc) $(cflags) $(cvarsdll) $(mydebug) viscamsg.c
mcidelay.obj: mcidelay.c mcivisca.h common.h mcivis32.def
$(cc) $(cflags) $(cvarsdll) $(mydebug) mcidelay.c
viscacom.obj: viscacom.c mcivisca.h common.h mcivis32.def
$(cc) $(cflags) $(cvarsdll) $(mydebug) viscacom.c
commtask.obj: commtask.c mcivisca.h common.h mcivis32.def
$(cc) $(cflags) $(cvarsdll) $(mydebug) commtask.c
common.obj: common.c mcivisca.h common.h mcivis32.def
$(cc) $(cflags) $(cvarsdll) $(mydebug) common.c
msmcivcr.obj: msmcivcr.c mcivisca.h common.h msmcivcr.def
$(cc) $(cflags) $(cvars) $(mydebug) msmcivcr.c
#
# Update the resources if necessary
#
mcivisca.res: mcivisca.rc mcivisca.h cnfgdlg.dlg
$(rc) $(rcvars) $(rcdebug) -r mcivisca.rc
mcivisca.rbj: mcivisca.res
cvtres -$(CPU) mcivisca.res -o mcivisca.rbj
#
# Update the import library
#
mcivisca.lib: mcivisca.obj mcicmds.obj viscamsg.obj mcidelay.obj viscacom.obj commtask.obj common.obj mcivis32.def
$(implib) -machine:$(CPU) \
-def:mcivis32.def \
mcivisca.obj mcicmds.obj viscamsg.obj mcidelay.obj viscacom.obj commtask.obj common.obj \
-out:mcivisca.lib
#
# Update the dynamic link library
#
mcivis32.dll: mcivisca.obj mcicmds.obj viscamsg.obj mcidelay.obj viscacom.obj commtask.obj common.obj mcivis32.def mcivisca.rbj mcivisca.exp
$(link) $(mylinkdebug) \
-base:0x1C000000 \
-dll \
-entry:DLLEntryPoint$(DLLENTRY) \
-out:mcivis32.dll \
mcivisca.exp \
mcivisca.obj mcicmds.obj viscamsg.obj mcidelay.obj viscacom.obj commtask.obj common.obj \
mcivisca.rbj winmm.lib $(guilibsdll)
#
# Update executables version information (in the rc file).
#
msmcivcr.res: msmcivcr.rc msmcivcr.rcv
$(rc) $(rcvars) $(rcdebug) -r msmcivcr.rc
msmcivcr.rbj: msmcivcr.res
cvtres -$(CPU) msmcivcr.res -o msmcivcr.rbj
#
# Update the executable file if necessary.
#
msmcivcr.exe: msmcivcr.obj mcivisca.lib msmcivcr.def msmcivcr.rbj
$(link) $(mylinkdebug) $(guiflags) msmcivcr.obj mcivisca.lib VERSION.LIB $(guilibs) msmcivcr.rbj -out:msmcivcr.exe