
CC	= gcc
CCC	= g++

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

# If your X includes are not in /usr/include/X11, 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/usr/include -I/usr/X11R6/include -I/mit/graphics/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:
	$(CC) -c $(CFLAGS) $<

.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

distclean: clean
	rm -f wmx wmx.old *~ *.bak

