#****************************************************************************
#* (C) Nicolas GEORGE 1999                                                  *
#* Ce programme fait partie du projet xbackground.                          *
#* Il est distribu sous les termes de la GNU-GPL, dont un exemplaire doit  *
#* tre joint (si ce n'est pas le cas, vous le trouverez sur www.fsf.org).  *
#* Je ne fournis aucune garantie sur ce programme.                          *
#****************************************************************************

CC=gcc
CF=-Wall
LF=
LIBS=-lX11 -lm

OBJETS=xbackground.o parse.o plasma.o cascade.o mandel.o

all: xbackground

install: all
	strip xbackground
	cp xbackground /usr/local/bin
	cp xbackground.1 /usr/local/man/man1/xbackground.1

xbackground: $(OBJETS)
	$(CC) $(LF) $(LIBS) -o $@ $^

$(OBJETS): %.o :%.c
	$(CC) $(CF) -c $<

$(OBJETS): xbackground.h

package: clean
	rm -f *~
	cd .. && tar zfc xbackground.tar.gz xbackground/*
#                    ^^^ h, j'aime la thorie des ensembles

clean:
	rm -f *.o xbackground
