a5f88e5e59
TODO: Still need to fix dependencies. wmmon.c: Updated version string to 1.2b2 (forgot this for 1.2b1). Fixed compiler warnings: added error checking for filesystem calls and commented out some preprocessor/C code that was apparently used to hardcode test cases. TODO: remove completely soon if no ill effect.
26 lines
380 B
Makefile
Executable file
26 lines
380 B
Makefile
Executable file
LIBDIR = -L/usr/X11R6/lib
|
|
LIBS = -lXpm -lXext -lX11
|
|
OBJS = wmmon.o \
|
|
../wmgeneral/wmgeneral.o \
|
|
../wmgeneral/misc.o \
|
|
../wmgeneral/list.o
|
|
|
|
CFLAGS = -O2
|
|
CC = cc
|
|
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c -Wall $< -o $*.o
|
|
|
|
wmmon: $(OBJS)
|
|
$(CC) $(LDFLAGS) -o wmmon $^ $(LIBDIR) $(LIBS)
|
|
|
|
debug: CFLAGS = -g3
|
|
debug: wmmon
|
|
|
|
clean::
|
|
for i in $(OBJS) ; do \
|
|
rm -f $$i;\
|
|
done
|
|
rm -f wmmon
|