21625f40b5
I tried to get the latest versions from dockapps.org, but I haven't tested any of them. More dockapps will be added as time permits.
37 lines
712 B
Makefile
37 lines
712 B
Makefile
CC = gcc
|
|
CFLAGS = -O2 -Wall
|
|
INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
|
|
DESTDIR= /usr/X11R6
|
|
LIBDIR = -L/usr/X11R6/lib
|
|
|
|
# for Linux, IRIX
|
|
LIBS = -lXpm -lX11 -lXext
|
|
|
|
# for Solaris
|
|
# LIBS = -lXpm -lX11 -lXext -lsocket -lnsl
|
|
|
|
OBJS = wmCalClock.o \
|
|
xutils.o
|
|
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $< -o $*.o $(INCDIR)
|
|
|
|
|
|
all: wmCalClock.o wmCalClock
|
|
|
|
wmCalClock.o: wmCalClock_master.xpm wmCalClock_mask.xbm
|
|
wmCalClock: $(OBJS)
|
|
$(CC) $(COPTS) $(SYSTEM) -o wmCalClock $(OBJS) $(INCDIR) $(LIBDIR) $(LIBS)
|
|
|
|
clean:
|
|
for i in $(OBJS) ; do \
|
|
rm -f $$i; \
|
|
done
|
|
rm -f wmCalClock
|
|
|
|
install:: wmCalClock
|
|
install -s -m 0755 wmCalClock $(DESTDIR)/bin
|
|
install -c -m 0644 wmCalClock.1 $(DESTDIR)/man/man1
|
|
|