2016-12-27 18:52:49 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -Wall -O2
|
|
|
|
INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
|
|
|
|
PREFIX = $(shell cat ../PREFIX)
|
|
|
|
DESTDIR= $(PREFIX)
|
|
|
|
LIBDIR = -L/usr/X11R6/lib
|
|
|
|
|
|
|
|
# for Linux
|
|
|
|
LIBS = -lXpm -lX11 -lXext
|
|
|
|
|
|
|
|
# for Solaris
|
|
|
|
# LIBS = -lXpm -lX11 -lXext -lsocket -lnsl
|
|
|
|
|
|
|
|
OBJS = wmCalClock.o \
|
|
|
|
xutils.o
|
|
|
|
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -D$(shell echo `uname -s`) -DKB_PIXMAP_PREFIX="\"$(PREFIX)/share/wmCalClockKbd/\"" -c $< -o $*.o $(INCDIR)
|
|
|
|
|
|
|
|
|
|
|
|
all: wmCalClock.o wmCalClockKbd
|
|
|
|
|
|
|
|
wmCalClock.o: wmCalClock_master.xpm wmCalClock_mask.xbm
|
2017-02-21 00:16:01 +00:00
|
|
|
wmCalClockKbd: $(OBJS)
|
2016-12-27 18:52:49 +00:00
|
|
|
$(CC) $(COPTS) $(SYSTEM) -o wmCalClockKbd $^ $(INCDIR) $(LIBDIR) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
for i in $(OBJS) ; do \
|
|
|
|
rm -f $$i; \
|
|
|
|
done
|
|
|
|
rm -f wmCalClockKbd
|
|
|
|
|
|
|
|
install: wmCalClockKbd
|
|
|
|
install -c -s -m 0755 wmCalClockKbd $(DESTDIR)/bin
|
2017-02-21 00:16:01 +00:00
|
|
|
install -c -m 0644 wmCalClockKbd.1 $(DESTDIR)/share/man/man1
|
2016-12-27 18:52:49 +00:00
|
|
|
|