ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/plugins/freebsd/Makefile
Revision: 1.2
Committed: Thu Mar 28 17:42:05 2002 UTC (22 years, 7 months ago) by pajs
Branch: MAIN
Changes since 1.1: +3 -3 lines
Log Message:
Now gets CPU stats, mem and swap stats. The problem with swap stats is that it needs to be
either suid root, or setgid kmem. I've assumed the latter since thats safer, and so it needs to be
setgid kmem to work now. The program however runs as a mortal except at the very moment it needs the
permissions where it gets them, and then releases them one system call later.

File Contents

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