CC = @CC@
CFLAGS = -Wall @CFLAGS@ @DEFS@
CPPFLAGS = @CPPFLAGS@ @DEFS@
LDFLAGS = @LDFLAGS@ @LIBS@
INSTALL = @INSTALL@
LIBS = @LIBS@

prefix = @prefix@
mandir = @mandir@
sysconfdir = @sysconfdir@
datadir = @datadir@
exec_prefix = @exec_prefix@
bindir = @bindir@

all:
	$(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -o free freecolor.c $(LIBS)

install-over-free:
	strip free
	cp -i free `which free`

install:
	strip free
	-$(INSTALL) -d $(bindir)
	$(INSTALL) -m 755 free $(bindir)/freecolor

clean:
	rm -f core free *~

distclean: clean
	rm -f Makefile config.log config.h config.status

pristine: distclean
	rm -rf autom4te.cache/ config.h.in configure
