
NAME		= test_race test_race_server
SRCDIR          = .

LIBS        = -lsctp

INCLUDEDIR  = 

LDFLAGS     =  
LDLIBS      = $(LIBS)
CFLAGS      = $(INCLUDEDIR) -g -O2 -Wall

HDRS     = test_race.h

SRCS     = \
		test_race.c \
		test_race_server.c

SERVER_OBJS=    test_race_server.o 
CLIENT_OBJS=    test_race.o 


XMODE		= -m 700	# mode for executables
FMODE		= -m 640	# mode for anything but executables

#
# The following variables do not need to be changed
#

all: test_race test_race_server

test_race_server:     $(SERVER_OBJS)
	$(CC) $(DEFS) -o $@ $(CFLAGS) $(LDFLAGS) $(SERVER_OBJS) $(LDLIBS) 

test_race:      $(CLIENT_OBJS)
	$(CC) $(DEFS) -o $@ $(CFLAGS) $(LDFLAGS) $(CLIENT_OBJS) $(LDLIBS)

clean:
	rm -f $(SERVER_OBJS) $(CLIENT_OBJS) test_race_server test_race

distclean: clean
		rm -f Makefile

#
# Object file dependencies
#
sctpspray.o:		sctpspray.h sctpspray_client.h
sctpspray_client.o:	sctpspray.h sctpspray_client.h
sctpspray_server.o:	sctpspray.h 
