wmtop: Add version 0.84 to repository.
[dockapps.git] / wmtop / Makefile
blobeedf30b8d1730887c95d7ff3a136368d174359ac
1 DEBUG = -DPARANOID
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
6 OPTS = -O3 -g -Wall
7 FLAGS = $(DEBUG) $(OPTS) -D$(OS)
8 MAKE = make
9 CC = cc
10 PREFIX ?= /usr/local
12 default:
13 @echo Use '"make os"' where '"os"' is one of:
14 @echo " freebsd"
15 @echo " linux"
16 @echo Then '"make install"'
18 freebsd:
19 $(MAKE) OS=FREEBSD all
21 linux:
22 $(MAKE) OS=LINUX all
24 .c.o:
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"'
31 all: wmtop
33 clean:
34 for i in $(OBJS) ; do \
35 rm -f $$i ; \
36 done
37 rm -f wmtop
38 rm -f *~
40 install: wmtop
41 strip wmtop
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..."