#This is a makefile to sgmpxgetinfo code .

SRC=	sgmpxgetinfo.c  createreq.c xutil.c sgmpxperfmon.c input.c
OBJ= 	sgmpxgetinfo.o  createreq.o xutil.o sgmpxperfmon.o input.o

O=	-O
CFLAGS=	$O -I../../h 
CLIBS = -lsgmp -lX -lBSD

sgmpxperfmon:$(OBJ)
	cc $(CFLAGS) -o sgmpxperfmon $(OBJ) $(CLIBS)

install: sgmpxperfmon
	cp sgmpxperfmon /usr/local/sgmpxperfmon

clean:
	/bin/rm sgmpxperfmon $(OBJ)

sgmpxgetinfo.o:sgmpxgetinfo.c
createreq.o:createreq.c
xutil.o:xutil.c
input.o:input.c
sgmpxperfmon.o:sgmpxperfmon.c
