# Uncommment the appropriate lines for your system

# for 4.3BSD
CFLAGS =
LIBS =

# for SYSV
#CFLAGS = -DSYSV -Wc,-Nd2000 -Wc,-Ns2000 
#LIBS = -lbsdipc -lBSD

OBJECTS = greserve.o

greserve: $(OBJECTS) Makefile
	cc -o greserve $(OBJECTS) ../../Glib/libG.a $(LIBS)

clean:
	rm -f core *.o greserve

.c.o: xpointer.h
	cc $(CFLAGS) -c $*.c

install: greserve
	install -o root -m 755 greserve /usr/local/bin

uninstall:
	rm -f /usr/local/bin/greserve
