1 # If the rpc include directory is not included in the standard path
2 # you have to give the path to it here.
5 # If the rpc library is not included in the standard lib path
6 # you have to give the path to it here.
9 # The architecture you're compiling for...
12 # The path to the Borland "Utilities"
16 LINK = $(BC)\bin\tlink32
17 IMPLIB = $(BC)\bin\implib
20 CC_FLAGS = -DWIN32 -w-pro -a8
21 LD_FLAGS = -L$(BC)\lib -x
23 DEFINITION = ONCRPC.DEF
65 all: oncrpc.dll portmap.exe
68 -del *.obj *.bak *.map *.*~
69 -del oncrpc.lib oncrpc.dll
71 # -del ..\rpcgen\oncrpc.dll
73 portmap.obj: portmap.c
74 $(CC) -tW -I$(RPCINCLUDEPATH) $(CC_FLAGS) $(ARCH) -c portmap.c
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
84 oncrpc.dll: $(OBJS) oncrpcbc.def oncbcimp.def oncrpc.res
85 $(LINK) -Tpd $(LD_FLAGS) @&&!
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
94 $(CC) -tWD -I$(RPCINCLUDEPATH) $(CC_FLAGS) $(ARCH) -DONCRPCDLL -c $*.c