2 LIBDIR
= -L
/usr
/X11R6
/lib
3 LIBS
= -lXpm
-lXext
-lX11
4 INCS
= -I
/usr
/X11R6
/share
/include -I
/usr
/X11R6
/include
5 OBJS
= wmtop.o wmgeneral
/wmgeneral.o wmgeneral
/misc.o wmgeneral
/list.o
7 FLAGS
= $(DEBUG
) $(OPTS
) -D
$(OS
)
13 @echo Use
'"make os"' where
'"os"' is one of
:
16 @echo Then
'"make install"'
19 $(MAKE
) OS
=FREEBSD
all
25 $(CC
) $(FLAGS
) $(INCS
) -c
$< -o
$*.o
27 wmtop
: $(OBJS
) wmtop.o
28 $(CC
) $(FLAGS
) -o wmtop
$(OBJS
) $(LIBDIR
) $(LIBS
)
29 @echo Now you can do a
'"make install"'
34 for i in
$(OBJS
) ; do \
42 cp
-f wmtop
$(PREFIX
)/bin
/
43 chmod
755 $(PREFIX
)/bin
/wmtop
44 cp
-f wmtop
.1 $(PREFIX
)/man
/man1
45 chmod
644 $(PREFIX
)/man
/man1
/wmtop
.1
46 @echo
"wmtop Installation finished..."