Merge up from branch.
[shibboleth/cpp-sp.git] / oncrpc / makefile.nt
1 # Nmake macros for building Windows 32-Bit apps
2 !include <ntwin32.mak>
3
4 # If the rpc include directory is not included in the standard path
5 # you have to give the path to it here.
6 RPCINCLUDEPATH = ..
7
8 # If the rpc library is not included in the standard lib path
9 # you have to give the path to it here.
10 RPCLIBPATH = ..\bin\\
11
12 DEFINITION =    ONCRPC.DEF
13
14 OBJS =          CLNT_RAW.OBJ \
15                 XDR.OBJ \
16                 CLNT_TCP.OBJ \
17                 CLNT_UDP.OBJ \
18                 PMAP_RMT.OBJ \
19                 RPC_PROT.OBJ \
20                 SVC_AUTU.OBJ \
21                 SVC_AUTH.OBJ \
22                 SVC_RAW.OBJ \
23                 SVC_RUN.OBJ \
24                 SVC_TCP.OBJ \
25                 SVC_UDP.OBJ \
26                 XDR_MEM.OBJ \
27                 XDR_REC.OBJ \
28                 AUTH_NON.OBJ \
29                 AUTH_UNI.OBJ \
30                 AUTHUNIX.OBJ \
31                 BINDRESV.OBJ \
32                 CLNT_GEN.OBJ \
33                 CLNT_PER.OBJ \
34                 CLNT_SIM.OBJ \
35                 GET_MYAD.OBJ \
36                 GETRPCEN.OBJ \
37                 GETRPCPO.OBJ \
38                 PMAP_CLN.OBJ \
39                 PMAP_GET.OBJ \
40                 PMAP_GMA.OBJ \
41                 PMAP_PRO.OBJ \
42                 PMAP_PR.OBJ \
43                 RPC_CALL.OBJ \
44                 RPC_COMM.OBJ \
45                 SVC_SIMP.OBJ \
46                 XDR_ARRA.OBJ \
47                 XDR_FLOA.OBJ \
48                 XDR_REFE.OBJ \
49                 XDR_STDI.OBJ \
50                 SVC.OBJ \
51                 BCOPY.OBJ \
52                 NT.OBJ
53
54 all: oncrpc.dll portmap.exe
55
56 clean:
57         del $(OBJS) oncrpc.lib oncrpc.dll oncrpc.exp portmap.obj portmap.exe ..\rpcgen\oncrpc.dll *.pdb
58
59 portmap.exe:    oncrpc.lib portmap.obj
60      $(link) $(conlflags) $(ldebug) -out:portmap.exe PORTMAP.obj $(RPCLIBPATH)oncrpc.lib $(conlibsdll) wsock32.lib
61         copy portmap.exe ..\bin\pm_ascii.exe
62
63 oncrpc.lib:     $(OBJS) oncrpc.def
64     $(implib) /out:oncrpc.lib /def:$(DEFINITION) $(OBJS)
65
66 oncrpc.dll:     $(OBJS) oncrpc.lib oncrpc.exp
67     $(link) /DLL /out:oncrpc.dll -entry:_DllMainCRTStartup$(DLLENTRY) $(ldebug) oncrpc.exp $(OBJS) $(conlibsdll) wsock32.lib advapi32.lib
68     copy oncrpc.lib ..\bin
69     copy oncrpc.dll ..\bin
70     copy oncrpc.dll ..\rpcgen
71
72 .c.obj:
73     $(cc) /I$(RPCINCLUDEPATH) $(cdebug) $(cflags) $(cvarsdll) $*.c