wmsun: Bump to version 1.05.
[dockapps.git] / wmmoonclock / src / Makefile
blobda08654dd920715cee9ba305d88f0f89c34f1875
1 CC = gcc
2 # CFLAGS = -O2
3 INCDIR = -I/usr/X11R6/include/X11
4 DESTDIR= /usr/X11R6
5 LIBDIR = -L/usr/X11R6/lib
7 # for Linux
8 LIBS = -lXpm -lX11 -lXext -lm
10 # for Solaris
11 # LIBS = -lXpm -lX11 -lXext -lm -lsocket
13 OBJS = wmMoonClock.o CalcEphem.o Moon.o MoonRise.o \
14 xutils.o
17 .c.o:
18 $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
21 all: wmMoonClock.o wmMoonClock
23 wmMoonClock.o: wmMoonClock_master.xpm wmMoonClock_mask.xbm CalcEphem.h
24 wmMoonClock: $(OBJS)
25 $(CC) $(CFLAGS) $(SYSTEM) -o wmMoonClock $^ $(INCDIR) $(LIBDIR) $(LIBS)
27 clean:
28 for i in $(OBJS) ; do \
29 rm -f $$i; \
30 done
31 rm -f wmMoonClock
33 install:: wmMoonClock
34 install -d -m 0755 $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1
35 install -m 0755 wmMoonClock $(DESTDIR)/usr/bin
36 install -m 0644 wmMoonClock.1 $(DESTDIR)/usr/share/man/man1