3 INCDIR
= -I
/usr
/X11R6
/include/X11
5 LIBDIR
= -L
/usr
/X11R6
/lib
8 LIBS
= -lXpm
-lX11
-lXext
-lm
11 # LIBS = -lXpm -lX11 -lXext -lm -lsocket
13 OBJS
= wmMoonClock.o CalcEphem.o Moon.o MoonRise.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
25 $(CC
) $(CFLAGS
) $(SYSTEM
) -o wmMoonClock
$^
$(INCDIR
) $(LIBDIR
) $(LIBS
)
28 for i in
$(OBJS
) ; do \
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