# The following macros are inserted by 'gconfig' for the "athena" configuration
TOP = ../..
UNIXTYPE = -DBSD43
UNIXVER =
BSDCOMPAT =
SERVOPTS = -DUNIXCONN -DSYSLOG
EXTENS = -DSAMPLE -DSEAMLESS
GLIBOPTS = -DUNIXCONN
CLIOPTS = -DPLX
LDFLAGS =
CFLAGS = -O
XLIB = -lX11
XEXTLIB = -lXext
SERVDIR = /etc
SERVFILEDIR = /etc
BINDIR = /usr/athena
INCDIR = /usr/include
LIBDIR = /usr/lib
SHELL = /bin/sh
INSTALL = install
MAKEDEP = makedepend
CC = cc
# End of inserted macros



SOURCES = greset.c
OBJECTS = greset.o

all:	greset

greset: $(OBJECTS) Makefile
	$(CC) $(LDFLAGS) -o greset $(OBJECTS) ../../Glib/libG.a $(BSDCOMPAT)

clean:
	rm -f core *.o greset *~
	cp Makefile Makefile.bak
	rm -f Makefile
	cat Makefile.bak | awk -f ../../etc/undep.awk > Makefile

depend:
	$(MAKEDEP) $(CFLAGS) $(CLIOPTS) $(UNIXTYPE) $(UNIXVER) -DSERVFILEDIR=\"$(SERVFILEDIR)\" $(SOURCES)

.c.o:
	-rm -f $*.o
	$(CC) $(CFLAGS) $(CLIOPTS) $(UNIXTYPE) $(UNIXVER) -DSERVFILEDIR=\"$(SERVFILEDIR)\" -c $*.c

install: all
	$(INSTALL) -c -s -m 4755 greset $(DESTDIR)$(BINDIR)

uninstall:
	-rm -f $(DESTDIR)$(BINDIR)/greset


