2025-11-28 00:35:46 +09:00

59 lines
1.5 KiB
Makefile

#*************************************************************#
#** **#
#** Microsoft RPC Examples **#
#** pickle Application **#
#** Copyright 1992 - 1999 Microsoft Corporation **#
#** **#
#*************************************************************#
!include <Win32.Mak>
!if "$(CPU)" == "i386"
cflags = $(cflags:G3=Gz)
!else
cflags = $(cflags) /W3 -D_CRTAPI1= -D_CRTAPI2=
!endif
!if "$(CPU)" == "i386"
cflags = $(cflags) -D_CRTAPI1=_cdecl -D_CRTAPI2=_cdecl
!endif
cflags = $(cflags) -GS
!if "$(CPU)" == "i386"
link = $(link) -SAFESEH
!endif
all : pickltc
# Make the picklt client
pickltc : pickltc.exe
pickltc.exe : pickltc.obj picklt_c.obj
$(link) $(linkdebug) $(conflags) -out:pickltc.exe \
pickltc.obj picklt_c.obj \
rpcrt4.lib $(conlibsdll)
# client main program
pickltc.obj : pickltc.c picklt.h
$(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
# client stub
picklt_c.obj : picklt_c.c picklt.h
$(cc) $(cdebug) $(cflags) $(cvarsdll) $*.c
# Stub and header file from the IDL file
picklt.h picklt_c.c: picklt.idl picklt.acf
midl $(MIDL_OPTIMIZATION) -oldnames -no_cpp -ms_ext picklt.idl
# Clean up everything
cleanall : clean
-del *.exe
# Clean up everything but the .EXEs
clean :
-del *.obj
-del *.map
-del picklt_c.c
-del picklt.h