# GLOBALFLAGS needed only for testing.
CFLAGS = -D_REENTRANT -D_EARTHWORM -I../include $(GLOBALFLAGS) -I../../../../multimax/include


# EW_VERSION is defined at startup by ew_sol_sparc.cmd
B = ../../$(EW_VERSION)/bin
L = ../../$(EW_VERSION)/lib

BINARIES =   ertm.o  ew_ptwc.o \
         $L/getutil.o  $L/kom.o $L/logit_mt.o $L/transport.o $L/sleep_ew.o\
         $L/socket_ew.o $L/time_ew.o $L/threads_ew.o $L/sema_ew.o\
         $L/mem_circ_queue.o $L/swap.o

ertm: $(BINARIES)
	cc -o $B/ertm $(BINARIES) libchan.a libartm.a -lgen -lsocket -lnsl -ldl -lintl -mt -lposix4 -lthread -lc -lm /usr/ucblib/libucb.a

clean:
	/bin/rm -f *.o

