38 lines
1 KiB
Plaintext
38 lines
1 KiB
Plaintext
# Nmake macros for building Windows 32-Bit apps
|
|
|
|
!include <ntwin32.mak>
|
|
|
|
my_lib = advapi32.lib olecli32.lib shell32.lib
|
|
|
|
all: clidemo.exe
|
|
|
|
# Update the resource if necessary
|
|
|
|
clidemo.res: clidemo.rc
|
|
$(rc) $(rcvars) -r clidemo.rc
|
|
|
|
# Update the object file if necessary
|
|
|
|
clidemo.obj: clidemo.c
|
|
$(cc) $(cflags) $(cvars) $(cdebug) clidemo.c
|
|
|
|
dialog.obj: dialog.c
|
|
$(cc) $(cflags) $(cvars) $(cdebug) dialog.c
|
|
|
|
object.obj: object.c
|
|
$(cc) $(cflags) $(cvars) $(cdebug) object.c
|
|
|
|
register.obj: register.c
|
|
$(cc) $(cflags) $(cvars) $(cdebug) register.c
|
|
|
|
stream.obj: stream.c
|
|
$(cc) $(cflags) $(cvars) $(cdebug) stream.c
|
|
|
|
utility.obj: utility.c
|
|
$(cc) $(cflags) $(cvars) $(cdebug) utility.c
|
|
|
|
# Update the executable file if necessary, and if so, add the resource back in.
|
|
|
|
clidemo.exe: clidemo.obj dialog.obj object.obj register.obj stream.obj utility.obj clidemo.res clidemo.def
|
|
$(link) $(linkdebug) $(guiflags) -out:clidemo.exe clidemo.obj dialog.obj object.obj register.obj stream.obj utility.obj clidemo.res $(guilibs) $(my_lib)
|