2015-08-13 16:13:28 +00:00
|
|
|
LIBS = -lXpm -lXext -lX11 -lm -lwmgeneral
|
|
|
|
OBJS = wmtime.o
|
2012-10-30 15:47:04 +00:00
|
|
|
XPMS = wmtime-master.xpm wmtime-mask.xbm
|
2015-01-03 22:16:18 +00:00
|
|
|
PREFIX = /usr/local
|
|
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
MANDIR = $(PREFIX)/share/man/man1
|
|
|
|
INSTALL = install
|
2012-10-30 15:47:04 +00:00
|
|
|
|
|
|
|
CC = gcc
|
2015-01-03 22:16:18 +00:00
|
|
|
CFLAGS = -O2 -Wall
|
2012-10-30 15:47:04 +00:00
|
|
|
|
|
|
|
.c.o:
|
2015-01-03 22:16:18 +00:00
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
|
2012-10-30 15:47:04 +00:00
|
|
|
|
|
|
|
wmtime: $(OBJS) $(XPMS)
|
2015-01-03 22:16:18 +00:00
|
|
|
$(CC) $(LDFLAGS) -o wmtime $(OBJS) $(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
|
2015-01-03 22:16:18 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(BINDIR)
|
|
|
|
$(INSTALL) wmtime $(DESTDIR)$(BINDIR)
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(MANDIR)
|
|
|
|
$(INSTALL) -m 644 wmtime.1 $(DESTDIR)$(MANDIR)
|