wmmon: Fix jiffy counter overflowing long on 32-bit systems.
[dockapps.git] / wmcalc / Makefile
blob90a0fd7706e4d9249e74f82736489c23b6941e37
1 LIBS = -lX11 -lXpm -lXext -lm
2 CC = gcc
3 TARGET = wmcalc
4 OBJECTS = wmcalc.o readln.o wmcalcswitch.o wmcalcfunc.o
5 CFLAGS = -O2 -Wall
6 DESTDIR =
7 PREFIX = /usr/local
8 BINDIR = $(PREFIX)/bin
9 MANDIR = $(PREFIX)/share/man/man1
10 CONF = /etc
11 INSTALL = /usr/bin/install
12 INSTALL_DIR = $(INSTALL) -d
13 INSTALL_PROGRAM = $(INSTALL)
14 INSTALL_FILE = $(INSTALL) -m 644
16 .c.o:
17 $(CC) -DCONF=\"$(CONF)\" $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
19 $(TARGET): $(OBJECTS)
20 $(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
22 clean::
23 for i in $(OBJECTS); do if [ -e $$i ] ; then rm $$i; fi; done
24 if [ -e $(TARGET) ] ; then rm $(TARGET); fi
26 install::
27 $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
28 $(INSTALL_PROGRAM) wmcalc $(DESTDIR)$(BINDIR)
29 $(INSTALL_DIR) $(DESTDIR)$(CONF)
30 $(INSTALL_FILE) wmcalc.conf $(DESTDIR)$(CONF)
31 $(INSTALL_DIR) $(DESTDIR)$(MANDIR)
32 $(INSTALL_FILE) wmcalc.1 $(DESTDIR)$(MANDIR)