# This is your C++ compiler
CCC	= g++

# This is the location of X11. I hope you have /include and /lib beneath that.
X11	= /usr/X11R6/

# If you're not using background pixmaps, remove -lXpm from the LIBS.
# If your X libraries are somewhere other, give their location here.
LIBS	= -L$(X11)/lib -lXpm -lXext -lX11 -lXmu -lSM -lICE -lm

# If your X includes are somewhere else, add their location
# as a -I option here (excluding the X11 bit).  If you're using I18N
# and Xlocale, please add -DX_LOCALE.
CFLAGS = -g -O2 -I$(X11)/include

OBJECTS	= Border.o Buttons.o Channel.o Client.o Config.o Events.o \
          Main.o Manager.o Menu.o Rotated.o Session.o

.C.o:
	$(CCC) -c $(CFLAGS) $<

all:	wmx

wmx:	$(OBJECTS)
	test -f wmx && mv -f wmx wmx.old || true
	$(CCC) -o wmx $(OBJECTS) $(LIBS)

clean:
	rm -f *.o core
