5 MANDIR
= $(PREFIX
)/share
/man
/man1
8 # If you need to compile on a Linux, dont change anything. If
9 # compiling for Solaris, swap the LIBS below...
11 # For Linux (and other?) Machines...
13 LIBS
= -lXpm
-lX11
-lXext
-lm
-ldockapp
15 # For Sun Solaris Machines (I know it compiles on 2.6)...
17 # LIBS = -lXpm -lX11 -lXext -lsocket
19 OBJS
= wmsun.o SunRise.o
22 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -c
$< -o
$*.o
26 wmsun.o
: wmSun_master.xpm wmSun_mask.xbm
29 $(CC
) $(LDFLAGS
) -o wmsun
$^
$(LIBS
)
32 for i in
$(OBJS
) ; do \
38 $(INSTALL
) -d
$(DESTDIR
)$(BINDIR
)
39 $(INSTALL
) wmsun
$(DESTDIR
)$(BINDIR
)
40 $(INSTALL
) -d
$(DESTDIR
)$(MANDIR
)
41 $(INSTALL
) -m
644 wmsun
.1 $(DESTDIR
)$(MANDIR
)