07fcba3f5f095a7e4a533a72d27f0061890b232b
[shibboleth/cpp-sp.git] / oncrpc / makefile.bc
1 # If the rpc include directory is not included in the standard path
2 # you have to give the path to it here.
3 RPCINCLUDEPATH = ..
4
5 # If the rpc library is not included in the standard lib path
6 # you have to give the path to it here.
7 RPCLIBPATH = ..\bin\\
8
9 # The architecture you're compiling for...
10 ARCH = -D_X86_
11
12 # The path to the Borland "Utilities"
13 BC = c:\bc5
14
15 CC      = $(BC)\bin\bcc32
16 LINK    = $(BC)\bin\tlink32
17 IMPLIB  = $(BC)\bin\implib
18 RC      = $(BC)\bin\brcc32
19
20 CC_FLAGS = -DWIN32 -w-pro -a8
21 LD_FLAGS = -L$(BC)\lib -x
22
23 DEFINITION =    ONCRPC.DEF
24
25 OBJS =          CLNT_RAW.OBJ \
26                 XDR.OBJ \
27                 CLNT_TCP.OBJ \
28                 CLNT_UDP.OBJ \
29                 PMAP_RMT.OBJ \
30                 RPC_PROT.OBJ \
31                 SVC_AUTU.OBJ \
32                 SVC_AUTH.OBJ \
33                 SVC_RAW.OBJ \
34                 SVC_RUN.OBJ \
35                 SVC_TCP.OBJ \
36                 SVC_UDP.OBJ \
37                 XDR_MEM.OBJ \
38                 XDR_REC.OBJ \
39                 AUTH_NON.OBJ \
40                 AUTH_UNI.OBJ \
41                 AUTHUNIX.OBJ \
42                 BINDRESV.OBJ \
43                 CLNT_GEN.OBJ \
44                 CLNT_PER.OBJ \
45                 CLNT_SIM.OBJ \
46                 GET_MYAD.OBJ \
47                 GETRPCEN.OBJ \
48                 GETRPCPO.OBJ \
49                 PMAP_CLN.OBJ \
50                 PMAP_GET.OBJ \
51                 PMAP_GMA.OBJ \
52                 PMAP_PRO.OBJ \
53                 PMAP_PR.OBJ \
54                 RPC_CALL.OBJ \
55                 RPC_COMM.OBJ \
56                 SVC_SIMP.OBJ \
57                 XDR_ARRA.OBJ \
58                 XDR_FLOA.OBJ \
59                 XDR_REFE.OBJ \
60                 XDR_STDI.OBJ \
61                 SVC.OBJ \
62                 BCOPY.OBJ \
63                 NT.OBJ
64
65 all: oncrpc.dll portmap.exe
66
67 clean:
68         -del *.obj *.bak *.map *.*~
69         -del oncrpc.lib oncrpc.dll
70         -del portmap.exe
71 #       -del ..\rpcgen\oncrpc.dll
72
73 portmap.obj:    portmap.c
74         $(CC) -tW -I$(RPCINCLUDEPATH) $(CC_FLAGS) $(ARCH) -c portmap.c
75
76 portmap.exe:    oncrpc.lib portmap.obj
77      $(LINK) -Tpe $(LD_FLAGS) c0x32.obj portmap.obj,portmap.exe,,\
78      $(RPCLIBPATH)oncrpc.lib import32.lib cw32.lib
79      copy portmap.exe ..\bin\pm_ascii.exe
80
81 oncrpc.res:     oncrpc.rc
82     $(RC) oncrpc.rc
83
84 oncrpc.dll:     $(OBJS) oncrpcbc.def oncbcimp.def oncrpc.res
85     $(LINK) -Tpd $(LD_FLAGS) @&&!
86 c0d32.obj $(OBJS)
87 !,oncrpc.dll,,import32.lib cw32.lib,oncrpcbc.def,oncrpc.res
88     $(IMPLIB) oncrpc.lib oncbcimp.def
89     copy oncrpc.lib ..\bin
90     copy oncrpc.dll ..\bin
91     copy oncrpc.dll ..\rpcgen
92
93 .c.obj:
94     $(CC) -tWD -I$(RPCINCLUDEPATH) $(CC_FLAGS) $(ARCH) -DONCRPCDLL -c $*.c
95