wmmon: Add support for larger load averages.
[dockapps.git] / wmswallow / Makefile
blob84e2e62743b7e42dc76488b9588c337b815eb8eb
1 MAKE=make
2 CC=gcc
3 CFLAGS=-Wall -g
4 RM=rm -f
5 X=/usr/X11R6
6 INCLUDES=-I$(X)/include
7 LIBPATHS=-L${X}/lib
8 LIBS=-lXext -lX11
9 PROG=wmswallow
10 OBJS=wmswallow.o
11 SH=/bin/sh
13 default:
14 @echo "Type make <platform> to compile."
15 @echo "Currently supported platforms are:"
16 @echo " xfree solaris solaris-gcc"
18 xfree:
19 ${MAKE} main
21 solaris:
22 ${MAKE} CC=cc CFLAGS="-g -Xa" X=/usr/openwin \
23 LIBPATHS="-L/usr/openwin/lib -R/usr/openwin/lib" \
24 LIBS="-lXext -lX" main
26 solaris-gcc:
27 ${MAKE} X=/usr/openwin \
28 LIBPATHS="-L/usr/openwin/lib -R/usr/openwin/lib" \
29 LIBS="-lXext -lX" main
31 main: ${OBJS}
32 ${CC} ${CFLAGS} $(INCLUDES) ${OBJS} -o ${PROG} ${LIBPATHS} ${LIBS}
34 tarball:
35 ${SH} -c "cd ..;tar cpO wmswallow/*.c wmswallow/Makefile \
36 wmswallow/todo wmswallow/LICENCE wmswallow/README \
37 wmswallow/README.solaris wmswallow/version.h \
38 wmswallow/CHANGELOG wmswallow/INSTALL wmswallow/wmswallow.spec\
39 |compress > wmswallow.tar.Z"
41 clean:
42 ${RM} ${PROG} *~ *.o
44 .c.o:
45 ${CC} ${CFLAGS} $(INCLUDES) -c $<