| 1 |
tdb |
1.5 |
# $Id: Makefile,v 1.4 2002/03/18 14:17:20 tdb Exp $ |
| 2 |
tdb |
1.1 |
|
| 3 |
|
|
# where libukcprog can be found for compiling |
| 4 |
|
|
LIBUKCPROG = ../libukcprog |
| 5 |
|
|
|
| 6 |
|
|
CFLAGS = -O3 -Wall |
| 7 |
|
|
|
| 8 |
|
|
INCLUDES = -I${LIBUKCPROG} |
| 9 |
tdb |
1.4 |
LIBS = ${LIBUKCPROG}/libukcprog.a -lkstat |
| 10 |
tdb |
1.1 |
|
| 11 |
|
|
all: solaris |
| 12 |
|
|
|
| 13 |
|
|
${LIBUKCPROG}/libukcprog.a: |
| 14 |
|
|
cd ${LIBUKCPROG} && $(MAKE) libukcprog.a |
| 15 |
|
|
|
| 16 |
tdb |
1.2 |
solaris.o: solaris.c ${LIBUKCPROG}/ukcprog.h |
| 17 |
tdb |
1.1 |
${CC} ${CFLAGS} -c ${INCLUDES} solaris.c |
| 18 |
|
|
|
| 19 |
|
|
solaris: solaris.o ${LIBUKCPROG}/libukcprog.a |
| 20 |
tdb |
1.4 |
${CC} ${CFLAGS} -o solaris solaris.o ${LIBS} |
| 21 |
tdb |
1.1 |
|
| 22 |
|
|
clean: |
| 23 |
|
|
rm -f solaris solaris.o |
| 24 |
|
|
cd ${LIBUKCPROG} && $(MAKE) clean |