home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
fwindows
/
archive
/
comwp260.lzh
/
SAMPLES.LZH
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1995-10-10
|
2KB
|
98 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 : hello.c
sample1.obj : sample1.c comwin.h
sample2.obj : sample2.c comwin.h
sample5.obj : sample5.c comwin.h
hello.exe : hello.obj hello.def
sample1.exe : sample1.obj sample1.def
sample2.exe : sample2.obj sample2.def
sample3.dll : sample3.obj sample3.def
sample5.exe : sample5.obj sample5.def
sample3.obj : sample3.c comwin.h
$(cc) $(cflags) -ACw $*.c
clean :
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 : hello.c
sample1.obj : sample1.c comwin.h
sample2.obj : sample2.c comwin.h
sample3.obj : sample3.c comwin.h
sample5.obj : sample5.c comwin.h
sample3.dll : sample3.obj sample3.def
clean :
del *.obj
del sample3.lib
del sample3.exp
!endif