dockapps/wmtime/Makefile

29 lines
586 B
Makefile
Raw Normal View History

LIBS = -lXpm -lXext -lX11 -lm -ldockapp
OBJS = wmtime.o
2012-10-30 15:47:04 +00:00
XPMS = wmtime-master.xpm wmtime-mask.xbm
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
INSTALL = install
2012-10-30 15:47:04 +00:00
CC = gcc
CFLAGS = -O2 -Wall
2012-10-30 15:47:04 +00:00
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
2012-10-30 15:47:04 +00:00
wmtime: $(OBJS) $(XPMS)
$(CC) $(LDFLAGS) -o wmtime $(OBJS) $(LIBS)
2012-10-30 15:47:04 +00:00
clean::
for i in $(OBJS) ; do \
rm -f $$i; \
2012-10-30 15:47:04 +00:00
done
rm -f wmtime
install:: wmtime
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) wmtime $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL) -m 644 wmtime.1 $(DESTDIR)$(MANDIR)