#
# Makefile for conNExS 
#
#  (C) 1996 Gian Paolo Ciceri
#  gp.ciceri@pn.itnet.it
#
# It is really rought. 
#
# I have: nexs stuff in /usr/local/...
#         msql stuff in /usr/local/Minerva/...
#
# So do not become crazy in order to find the files on your box.
# Enjoy.
#  


#CFLAG =  -g -Wall
CFLAG =  -O2 -Wall
CINCL =  -I/usr/local/Minerva/include -I/usr/local/include
CLIB  =  -L/usr/local/Minerva/lib/ -L/usr/local/lib  -L/usr/X11R6/lib
CLINK =  -lmsql -lnexs -lX11 -lm

TARGET = conNExS

all:  $(TARGET)

 $(TARGET):  $(TARGET).o
	gcc $(CFLAG) $(CINCL) $(CLIB) -o  $(TARGET)  $(TARGET).o $(CLINK)

 $(TARGET).o:  $(TARGET).c
	gcc $(CFLAG) $(CINCL) $(CLIB) -c  $(TARGET).c

clean:  
	rm -f $(TARGET)
	rm -f *.o

install:
	rm -f /usr/local/bin/$(TARGET)
	cp $(TARGET) /usr/local/bin/

