78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
#*************************************************************#
|
|
#** **#
|
|
#** Microsoft RPC Examples **#
|
|
#** inout Application **#
|
|
#** Copyright 1992 - 1999 Microsoft Corporation **#
|
|
#** **#
|
|
#*************************************************************#
|
|
|
|
!include <Win32.Mak>
|
|
|
|
!if "$(CPU)" == "i386"
|
|
cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl -DSECURITY_WIN32
|
|
!else
|
|
cflags = $(cflags) -D_CRTAPI1= -D_CRTAPI2= -DSECURITY_WIN32
|
|
!endif
|
|
|
|
cflags = $(cflags) -GS
|
|
|
|
!if "$(CPU)" == "i386"
|
|
link = $(link) -SAFESEH
|
|
!endif
|
|
|
|
all : inoutc inouts
|
|
|
|
# Make the inout client
|
|
inoutc : inoutc.exe
|
|
inoutc.exe : inoutc.obj inout_c.obj spn.obj
|
|
$(link) $(linkdebug) $(conflags) -out:inoutc.exe \
|
|
inoutc.obj inout_c.obj spn.obj\
|
|
rpcrt4.lib ntdsapi.lib secur32.lib netapi32.lib $(conlibsdll)
|
|
|
|
# inout client main program
|
|
inoutc.obj : inoutc.c inout.h
|
|
$(cc) $(cdebug) $(cflags) $(cvarsdll) /W3 $*.c
|
|
|
|
# inout client stub
|
|
inout_c.obj : inout_c.c inout.h
|
|
$(cc) $(cdebug) $(cflags) $(cvarsdll) /W3 $*.c
|
|
|
|
# Make the inout server
|
|
inouts : inouts.exe
|
|
inouts.exe : inouts.obj inoutp.obj inout_s.obj spn.obj
|
|
$(link) $(linkdebug) $(conflags) -out:inouts.exe \
|
|
inouts.obj inout_s.obj inoutp.obj spn.obj\
|
|
rpcrt4.lib ntdsapi.lib secur32.lib netapi32.lib $(conlibsdll)
|
|
|
|
# inout server main loop
|
|
inouts.obj : inouts.c inout.h
|
|
$(cc) $(cdebug) $(cflags) $(cvarsdll) /W3 $*.c
|
|
|
|
# remote procedures
|
|
inoutp.obj : inoutp.c inout.h
|
|
$(cc) $(cdebug) $(cflags) $(cvarsdll) /W3 $*.c
|
|
|
|
# inout server stub file
|
|
inout_s.obj : inout_s.c inout.h
|
|
$(cc) $(cdebug) $(cflags) $(cvarsdll) /W3 $*.c
|
|
|
|
# spn
|
|
spn.obj : spn.c
|
|
$(cc) $(cdebug) $(cflags) $(cvarsdll) /W3 $*.c
|
|
|
|
# Stubs and header file from the IDL file
|
|
inout.h inout_c.c inout_s.c : inout.idl inout.acf
|
|
midl $(MIDL_OPTIMIZATION) -oldnames -no_cpp inout.idl
|
|
|
|
# Clean up everything
|
|
cleanall : clean
|
|
-del *.exe
|
|
|
|
# Clean up everything but the .EXEs
|
|
clean :
|
|
-del *.obj
|
|
-del *.map
|
|
-del inout_c.c
|
|
-del inout_s.c
|
|
-del inout.h
|