wmail: updated change-log and bumped to 2.2.
[dockapps.git] / wmcalclockkbd / src / Makefile
blob2534b04369974d879e002585e11fb58344d220fe
1 CC = gcc
2 CFLAGS = -Wall -O2
3 INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
4 PREFIX = $(shell cat ../PREFIX)
5 DESTDIR= $(PREFIX)
6 LIBDIR = -L/usr/X11R6/lib
8 # for Linux
9 LIBS = -lXpm -lX11 -lXext
11 # for Solaris
12 # LIBS = -lXpm -lX11 -lXext -lsocket -lnsl
14 OBJS = wmCalClock.o \
15 xutils.o
18 .c.o:
19 $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -DKB_PIXMAP_PREFIX="\"$(PREFIX)/share/wmCalClockKbd/\"" -c $< -o $*.o $(INCDIR)
22 all: wmCalClock.o wmCalClockKbd
24 wmCalClock.o: wmCalClock_master.xpm wmCalClock_mask.xbm
25 wmCalClockKbd: $(OBJS)
26 $(CC) $(COPTS) $(SYSTEM) -o wmCalClockKbd $^ $(INCDIR) $(LIBDIR) $(LIBS)
28 clean:
29 for i in $(OBJS) ; do \
30 rm -f $$i; \
31 done
32 rm -f wmCalClockKbd
34 install: wmCalClockKbd
35 install -c -s -m 0755 wmCalClockKbd $(DESTDIR)/bin
36 install -c -m 0644 wmCalClockKbd.1 $(DESTDIR)/share/man/man1