# ---------------------------------------------------------------------
#   Distinct ONC RPC/XDR for Java
#   Copyright 1997, 1998 by Distinct Corporation. All rights reserved.
# ---------------------------------------------------------------------

# Edit these settings for configuring rpcgw to your environment

# Uncomment this line if you want to disable the use of the access control list (NOT recommended)
#SECURITY = -DNO_SECURITY

# Uncomment these line if you want logging of RPC activity
LOG = -DDO_LOGGING
LOGFILENAME = -DLOGFILENAME="\"rpcgw.log\""

CONFIG= $(SECURITY) $(LOG) $(LOGFILENAME)

# Use these settings for Win32
CC = cl
OBJECTEXT = .obj
EXEEXT = .exe
RM = del
CFLAGS = -O -MT -DWIN32 
LIBS = wsock32.lib d32-rpc.lib

# Use these settings for Solaris (and probably most other Unix derivates)
#CC = gcc
#OBJECTEXT = .o
#EXEEXT =
#RM = rm
#CFLAGS = -O -I.
#LIBS = -lnsl
# Use -static if you want to build a binary that doesn't require any dynamic libraries
#STATIC = -static

OBJS =		rpcgw$(OBJECTEXT) 

rpcgw: $(OBJS)
	$(CC) $(STATIC) -o rpcgw$(EXEEXT) $(OBJS) $(LIBS)

clean:
	-$(RM) *$(OBJECTEXT)
	-$(RM) rpcgw$(EXEEXT)

.c$(OBJECTEXT):
	$(CC) $(CFLAGS) $(CONFIG) -c $*.c
