5 MANDIR
= $(PREFIX
)/share
/man
/man1
9 # If you need to compile on a Linux, dont change anything. If
10 # compiling for Solaris, swap the LIBS below...
12 # For Linux (and other?) Machines...
14 LIBS
= -lXpm
-lX11
-lXext
-lm
-ldockapp
16 # For Sun Solaris Machines (I know it compiles on 2.6)...
18 # LIBS = -lXpm -lX11 -lXext -lsocket
20 OBJS
= wmsun.o SunRise.o
23 $(CC
) $(CPPFLAGS
) -DWMSUN_VERSION
=\"$(WMSUN_VERSION
)\" $(CFLAGS
) -c
$< \
28 wmsun.o
: wmSun_master.xpm wmSun_mask.xbm
31 $(CC
) $(LDFLAGS
) -o wmsun
$^
$(LIBS
)
34 for i in
$(OBJS
) ; do \
37 rm -f wmsun wmsun-
$(WMSUN_VERSION
).
tar.gz
40 $(INSTALL
) -d
$(DESTDIR
)$(BINDIR
)
41 $(INSTALL
) wmsun
$(DESTDIR
)$(BINDIR
)
42 $(INSTALL
) -d
$(DESTDIR
)$(MANDIR
)
43 $(INSTALL
) -m
644 wmsun
.1 $(DESTDIR
)$(MANDIR
)
45 dist: BUGS COPYING ChangeLog COPYING Makefile README SunRise.c TODO wmsun
.1 \
46 wmsun.c wmSun_mask.xbm wmSun_master.xpm
47 tar -cf wmsun-
$(WMSUN_VERSION
).
tar \
48 --transform
"s|^|wmsun-$(WMSUN_VERSION)/|" $^
49 gzip
-n wmsun-
$(WMSUN_VERSION
).
tar