######################################################################
# Makefile for SUIT applications
######################################################################

# this denotes where the SUIT distribution lives
SUIT      =/users/suit/v2.2/sun3
XLIBS	  =/usr/local/lib/X11
X_INC_DIR =/usr/include/X11

# Name of the directory in which to write the executable
DEST	= 	. 


CC	=	gcc
LDLIBS	=	-lsuit -lsrgp -lX11 -lm
LDFLAGS	=	-L$(SUIT)/lib -L$(XLIBS)

#DEBUG	=	-g
OPTIMIZE =	-O

CFLAGS	=	-fpcc-struct-return  -Wall -I$(X_INC_DIR) -I$(SUIT)/include $(DEBUG) $(OPTIMIZE)

######################################################################

COMPILE.c=$(CC) $(CFLAGS) $(CPPFLAGS) -c

empty: empty.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o empty empty.o $(LDLIBS) 
	strip empty
######################################################################

clean:
	rm -f *.o core empty 
