2012-10-30 15:47:04 +00:00
|
|
|
LIBDIR = -L/usr/X11R6/lib
|
|
|
|
LIBS = -lXpm -lXext -lX11 -lm
|
|
|
|
OBJS = wmtime.o \
|
2015-01-03 22:16:17 +00:00
|
|
|
wmgeneral/wmgeneral.o \
|
|
|
|
wmgeneral/misc.o \
|
|
|
|
wmgeneral/list.o
|
2012-10-30 15:47:04 +00:00
|
|
|
XPMS = wmtime-master.xpm wmtime-mask.xbm
|
|
|
|
|
|
|
|
CC = gcc
|
2013-09-22 14:49:01 +00:00
|
|
|
CFLAGS += -O2
|
2012-10-30 15:47:04 +00:00
|
|
|
|
|
|
|
.c.o:
|
2013-09-22 14:49:01 +00:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -c -Wall $< -o $*.o
|
2012-10-30 15:47:04 +00:00
|
|
|
|
|
|
|
wmtime: $(OBJS) $(XPMS)
|
2013-09-22 14:49:01 +00:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o wmtime $(OBJS) $(LIBDIR) $(LIBS)
|
2012-10-30 15:47:04 +00:00
|
|
|
|
|
|
|
clean::
|
|
|
|
for i in $(OBJS) ; do \
|
2014-08-27 12:24:30 +00:00
|
|
|
rm -f $$i; \
|
2012-10-30 15:47:04 +00:00
|
|
|
done
|
2014-08-27 12:24:30 +00:00
|
|
|
rm -f wmtime
|
2013-10-13 19:07:37 +00:00
|
|
|
|
|
|
|
install:: wmtime
|
2014-08-27 12:24:30 +00:00
|
|
|
install -m 755 wmtime $(DESTDIR)/usr/bin
|