#Makefile for MAtlab -client
#Author Schnizer Pierre Seiwald Bernhard
#Date 4.April 1998
# Compiling on Redhat -Linux is a problem, because <sockets.h> need -ansi and pthreads are not.
# to suppress messages compile with -DQUIET

CC = gcc
NOANSI_CFLAGS =  -pedantic  -Wall -O4 -DQUIET 
CFLAGS =  $(NOANSI_CFLAGS)   #-g $(DO)

THREAD_CFLAGS = ${CFLAGS} #-pthread
LDFLAGS= -L/usr/local/matlab/extern/lib/lnx86 -leng -lmx -lmat  \
	-lpthread 

HEADERS = connection.h clientt.h user.h
OBJECTS = clientopen.o clientclose.o get_mes.o send_mes.o clientevalstring.o  client_get_array.o \
          client_send_array.o client_open.o my_error.o user_demo.o print_array.o
 
clientt: $(OBJECTS) makefile
	$(CC) $(THREAD_CFLAGS) $(OBJECTS) -o clientt $(LDFLAGS)

client_open.o: client_open.c
	$(CC) $(NOANSI_CFLAGS) -c client_open.c -o client_open.o

clean :
	rm -f *.o *~ *# core clientt 









