
# point this at your version of OTP
OTPROOT=/usr/local/otp/releases/otp_jam_sunos5_r4b

# list all object files here
OBJS=server.o rmod_random__s.o callbacks.o

CLOBJ= client.o rmod_random.o

CC=gcc

CFLAGS=-ggdb -O2 -Wall -I$(OTPROOT)/usr/include 

LDFLAGS=-L$(OTPROOT)/usr/lib

LDLIBS=-lerl_interface -lei -lnsl -lsocket -lic

all: server client

server: $(OBJS)
	$(CC) $(OBJS) -o $@ $(LDFLAGS) $(LDLIBS)

client: $(CLOBJ)
	$(CC) $(CLOBJ) -o $@ $(LDFLAGS) $(LDLIBS)


clean: 
	/bin/rm -f $(OBJS) $(CLOBJ) rmod_random.* *.jam oe* *.h *.hrl *~ core server client


# Command for starting the server
#
# erl -pa /clearcase/otp/libraries/ic/ebin -setcookie flash -sname babbis
#
