# -------------------------------------------------------------------- # # Microsoft RPC # Copyright(c) Microsoft Corp., 1990-94 # # -------------------------------------------------------------------- # -------------------------------------------------------------------- # # File : makefile.inc # # Title : Makefile for the Win16 RPC client runtime # # History : # stevez 08-30-90 Cloned from ..\dos\makefile # mikemon 11-08-90 Added the IMPORT environment variable. # mikemon 11-08-90 Changed the default build so that $(PATH), # $(INCLUDE), $(LIB) dont include themselves. # mikemon 11-16-90 Switched the $(IMPORT)\os212\h directory before # the $(IMPORT)\c600\h directory for includes. # mariogo 4-15-94 New stuff - re-write. # -------------------------------------------------------------------- !ifndef RPC !error - You forgot to set your build environment !endif ## These inference rules must be defined FIRST. Inference rules are evaluated ## backwards, we want to use the file in . or .. before those possibly ## avaliable with these rules. Yes, this is a hack. {..\dos}.c{}.obj : $(CC) $(CFLAGS) -Fo$@ -c $< {..\dos}.cxx{}.obj : $(CC) $(CXXFLAGS) -Fo$@ -c $< WIN=1 !include ..\rules.mk CINC = -I$(RPC)\common\include $(CINC) -I..\..\rpcreg -I$(IMPORT)\lmsdk\h -I..\dos -I$(IMPORT)\banyan\winsdk\include CFLAGS =$(CFLAGS) -AMw CFLAGS_AL =$(CFLAGS:AM=AL) CXXFLAGS =$(CXXFLAGS) -AMw # # WARNING WARNING WARNING # # Do not rearrange or add to the files in this list without first reading # the comment block for NotificationStart() in wdatexit.c ! OBJS = \ binding.obj \ bitset.obj \ bufapi.obj \ clntapip.obj \ conv_s.obj \ dcebind.obj \ dcecclnt.obj \ dcecmisc.obj \ dcestrng.obj \ dceuuid.obj \ dgclnt.obj \ dgpkt.obj \ dllmgmt.obj \ dthreads.obj \ epclnt.obj \ epmp_c.obj \ except86.obj \ handle.obj \ memory.obj \ miscwin.obj \ msgapi.obj \ osfclnt.obj \ osfpcket.obj \ rpcuuid.obj \ sdict.obj \ secclnt.obj \ tower.obj \ tranclnt.obj \ ulong64.obj \ util.obj \ uuid16.obj \ wdatexit.obj \ winexcpt.obj \ winutil.obj \ winyield.obj \ !ifndef RELEASE lacheck.obj \ !endif # -------------------------------------------------------------------- # These are the targets required by the build process. all : $(TARGETDIR)\rpcrt1.dll \ $(TARGETDIR)\Rpc.lib \ $(TARGETDIR)\rpc16c1.dll \ $(TARGETDIR)\rpc16c3.dll \ $(TARGETDIR)\rpc16dg3.dll\ $(TARGETDIR)\rpc16c4.dll \ $(TARGETDIR)\rpc16c5.dll \ $(TARGETDIR)\rpc16c6.dll \ $(TARGETDIR)\rpc16dg6.dll \ $(TARGETDIR)\rpc16c8.dll \ $(TARGETDIR)\netapi.dll \ uclnt.exe clobber :: -del $(TARGETDIR)\*.lib $(TARGETDIR)\*.exe $(TARGETDIR)\*.dll 2> nul depend : $(INCLUDES) $(INCLUDESFLAGS) *.c *.cxx ..\*.cxx ..\*.c *.asm \ ..\dos\uuid16.cxx ..\dos\ulong64.cxx > depend.mk tree : copy Rpc.h $(RPCDIST)\win\inc\Rpc.h copy $(TARGETDIR)\Rpc.lib $(RPCDIST)\win\lib copy $(TARGETDIR)\rpcrt1.dll $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16C1.dll $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16C3.dll $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16dg3.dll $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16C4.dll $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16C5.dll $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16C8.dll $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpcrt1.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C1.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C3.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16dg3.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C4.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C5.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpcrt1.sym $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C1.sym $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C3.sym $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16dg3.sym $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C4.sym $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C5.sym $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16C6.dll $(RPCDIST)\win\dll copy $(TARGETDIR)\rpc16dg6.dll $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C6.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16dg6.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16C6.sym $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16c8.map $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16c8.sym $(RPCDIST)\win\dll -copy $(TARGETDIR)\rpc16dg6.sym $(RPCDIST)\win\dll copy $(TARGETDIR)\netapi.dll $(RPCDIST)\win\dll copy stdio\sStdioW.lib $(RPCDIST)\win\lib copy stdio\lStdioW.lib $(RPCDIST)\win\lib copy stdio\WinMain.def $(RPCDIST)\win\lib copy stdio\WinMain.res $(RPCDIST)\win\lib # # copy generated DLLs to runtime\bin\win # $(TARGETDIR)\rpcrt1.dll \ $(TARGETDIR)\rpc16c1.dll \ $(TARGETDIR)\rpc16c3.dll \ $(TARGETDIR)\rpc16c4.dll \ $(TARGETDIR)\rpc16c5.dll \ $(TARGETDIR)\rpc16c6.dll \ $(TARGETDIR)\rpc16dg3.dll \ $(TARGETDIR)\rpc16c8.dll \ $(TARGETDIR)\rpc16dg6.dll \ : $(@B).dll copy $(@B).dll $*.dll copy $(@B).map $*.map copy $(@B).sym $*.sym # # version information for each DLL # RPC16C1.res \ RPC16C3.res \ RPC16C4.res \ RPC16C5.res \ RPC16C6.res \ RPC16C8.res \ RPC16DG3.res \ RPC16DG6.res \ : rpcwinlt.rc rpcver.h set INCLUDE=$(WINSDK_INC) $(RC) $(RCFLAGS:/nologo=) -d$(@B) -fo"$@" -r rpcwinlt.rc # -------------------------------------------------------------------- RT1LIBS=$(WIN_LIB)\mdllcew.lib \ $(WINSDK_LIB)\libw.lib \ $(WINSDK_LIB)\toolhelp.lib \ $(RPC)\common\lib\wnetapi.lib \ $(TARGETDIR)\rpcreg.lib \ $(RPC)\ndrlib\win\rpcndrp.lib \ $(RPC)\ndr20\win\rpcndr20.lib rpcrt1.lnk: makefile echo @<