wmmp3: Rename configure.in as configure.ac.
[dockapps.git] / wmtime / Makefile
blobbd7c5f9e9230cac8daf7ad0283c250a44ca897bf
1 LIBS = -lXpm -lXext -lX11 -lm -ldockapp
2 OBJS = wmtime.o
3 XPMS = wmtime-master.xpm wmtime-mask.xbm
4 PREFIX = /usr/local
5 BINDIR = $(PREFIX)/bin
6 MANDIR = $(PREFIX)/share/man/man1
7 INSTALL = install
9 CC = gcc
10 CFLAGS = -O2 -Wall
12 .c.o:
13 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
15 wmtime: $(OBJS) $(XPMS)
16 $(CC) $(LDFLAGS) -o wmtime $(OBJS) $(LIBS)
18 clean::
19 for i in $(OBJS) ; do \
20 rm -f $$i; \
21 done
22 rm -f wmtime
24 install:: wmtime
25 $(INSTALL) -d $(DESTDIR)$(BINDIR)
26 $(INSTALL) wmtime $(DESTDIR)$(BINDIR)
27 $(INSTALL) -d $(DESTDIR)$(MANDIR)
28 $(INSTALL) -m 644 wmtime.1 $(DESTDIR)$(MANDIR)