# The following macros are inserted by 'gconfig' for the "generic" configuration
TOP = ../..
UNIXTYPE = -DBSD43
UNIXVER =
BSDCOMPAT =
SERVOPTS =
EXTENS = -DSAMPLE
GLIBOPTS =
CLIOPTS =
LDFLAGS = 
CFLAGS = 
XLIB = -lX11
XEXTLIB =
SERVDIR = /etc
SERVFILEDIR = /etc
BINDIR = /usr/local/bin
INCDIR = /usr/local/include
LIBDIR = /usr/local/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


