home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 December
/
VPR9712A.ISO
/
OLS
/
WIN32
/
COMWP380
/
comwp380.exe
/
SAMPLES.EXE
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1997-08-25
|
2KB
|
118 lines
!if 0
#-----------#
# For WIN16 #
#-----------#
cc = cl
link = link
cflags = -nologo -c -G3 -Gw -Gf -Ox -W3 -Zp
guiflags = /nologo/align:16/nod
.c.obj :
$(cc) $(cflags) $*.c
.obj.exe :
$(link) $(guiflags)\
$*.obj,,nul,slibcew+libw+commdlg,$*.def
rc $*.exe
.obj.dll :
$(link) $(guiflags)\
$*.obj,$*.dll,nul,cdllcew+libw+commdlg,$*.def
rc $*.dll
all : hello.exe \
sample1.exe \
sample2.exe \
sample3.dll \
sample5.exe
hello.obj : $*.c
sample1.obj : $*.c comwin.h
sample2.obj : $*.c comwin.h
sample5.obj : $*.c comwin.h
hello.exe : $*.obj $*.def
sample1.exe : $*.obj $*.def
sample2.exe : $*.obj $*.def
sample3.dll : $*.obj $*.def
sample5.exe : $*.obj $*.def
sample3.obj : $*.c comwin.h
$(cc) $(cflags) -ACw $*.c
rel :
del *.bak
del *.obj
clean :
del *.bak
del *.dll
del *.exe
del *.obj
!else
#-----------#
# For WIN32 #
#-----------#
CPU = i386
!include <ntwin32.mak>
cdebug=
ldebug=
guilibsdll = libcmt.lib oldnames.lib $(winlibs)
.c.obj :
$(cc) -nologo -Ox $(cdebug) $(cflags) $(cvars) $*.c
.obj.exe :
$(link) /NOLOGO\
$(ldebug) $(guiflags)\
-out:$*.exe\
$*.obj\
$(guilibs) comwin32.lib
.obj.dll :
$(link) /NOLOGO\
$(ldebug) $(guilflags)\
-base:0x1c000000\
-dll\
-entry:_DllMainCRTStartup$(DLLENTRY)\
-out:$*.dll\
-def:$*.def\
$*.obj\
$(guilibsdll) comwin32.lib
all : hello.exe \
sample1.exe \
sample2.exe \
sample3.dll \
sample5.exe
hello.obj : $*.c
sample1.obj : $*.c comwin.h
sample2.obj : $*.c comwin.h
sample3.obj : $*.c comwin.h
sample5.obj : $*.c comwin.h
sample3.dll : $*.obj $*.def
hellocpp.exe : $*.cpp comwin.h
$(cc) -nologo -MT $*.cpp -link -subsystem:windows comwin32.lib
rel :
del *.bak
del *.obj
del sample3.lib
del sample3.exp
clean :
del *.bak
del *.dll
del *.exe
del *.obj
del sample3.lib
del sample3.exp
!endif