wmcore: use CPPFLAGS and LDFLAGS.
[dockapps.git] / wmcore / Makefile
blob31f4d7a6600ca45e74687c917fc50016e5522ad7
1 INSTALL = /usr/bin/install
2 LIBDIR = -L/usr/X11R6/lib
3 LIBS = -lXpm -lXext -lX11
4 OBJS = wmcore.o \
5 wmgeneral.o \
6 misc.o \
7 list.o
10 .c.o:
11 cc $(CPPFLAGS) $(CFLAGS) -Wall -c -O3 $< -o $*.o
13 wmlmon: $(OBJS)
14 cc $(LDFLAGS) -Wall -o wmcore $^ $(LIBDIR) $(LIBS)
16 clean::
17 for i in $(OBJS) ; do \
18 rm -f $$i;\
19 done
20 rm -f wmcore
21 install::
22 $(INSTALL) -c wmcore $(DESTDIR)/usr/bin/wmcore
23 uninstall:
24 rm -f /usr/bin/wmcore