ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/Makefile
(Generate patch)

Comparing projects/cms/source/ihost/Makefile (file contents):
Revision 1.1 by tdb, Mon May 13 12:05:22 2002 UTC vs.
Revision 1.5 by tdb, Thu May 16 17:57:30 2002 UTC

# Line 2 | Line 2
2  
3   # defines that should be set
4   DEFS=
5 + # libraries that should be set
6 + LIBS=
7  
8   # where libukcprog can be found for compiling
9   LIBUKCPROG = libukcprog
10   # where libstatgrab can be found for compiling
11 < LIBSTATGRAB = statgrab
11 > LIBSTATGRAB = libstatgrab
12  
13 < CFLAGS = -O3 -Wall
13 > #CFLAGS = -O3 -Wall
14 > CFLAGS = -O3 -Wall -g
15  
16   INCLUDES = -I${LIBUKCPROG} -I${LIBSTATGRAB}
17 < LIBS = ${LIBUKCPROG}/libukcprog.a ${LIBSTATGRAB}/libstatgrab.a \
15 <       -lnsl -lsocket
17 > OURLIBS = ${LIBSTATGRAB}/libstatgrab.a ${LIBUKCPROG}/libukcprog.a
18  
19   all:
20          @echo "Must use one of the following targets :-"
# Line 22 | Line 24 | all:
24          @echo "  $(MAKE) oldlinux"
25  
26   ${LIBUKCPROG}/libukcprog.a:
27 <        cd ${LIBUKCPROG} && $(MAKE) libukcprog.a
27 >        cd ${LIBUKCPROG} && $(MAKE) libukcprog.a CFLAGS="${CFLAGS}"
28  
29   ${LIBSTATGRAB}/libstatgrab.a:
30 <        cd ${LIBSTATGRAB} && $(MAKE) libstatgrab.a DEFS="${DEFS}"
30 >        cd ${LIBSTATGRAB} && $(MAKE) libstatgrab.a DEFS="${DEFS}" CFLAGS="${CFLAGS}"
31  
32   ihost.o: ihost.c ${LIBUKCPROG}/ukcprog.h ${LIBSTATGRAB}/statgrab.h
33          ${CC} ${DEFS} ${CFLAGS} -c ${INCLUDES} ihost.c
34  
35   ihost: ihost.o ${LIBUKCPROG}/libukcprog.a ${LIBSTATGRAB}/libstatgrab.a
36 <        ${CC} ${CFLAGS} -o ihost ihost.o ${LIBS}
36 >        ${CC} ${CFLAGS} -o ihost ihost.o ${OURLIBS} ${LIBS}
37  
38   solaris:
39 <        $(MAKE) ihost DEFS=-DSOLARIS
39 >        $(MAKE) ihost DEFS="-DSOLARIS" LIBS="-lnsl -lsocket -lkstat"
40  
41   linux:
42 <        $(MAKE) ihost DEFS=-DLINUX
42 >        $(MAKE) ihost DEFS="-DLINUX"
43  
44   freebsd:
45 <        $(MAKE) ihost DEFS=-DFREEBSD
45 >        $(MAKE) ihost DEFS="-DFREEBSD" LIBS="-lkvm"
46  
47   oldlinux:
48          $(MAKE) ihost DEFS="-DOLDLINUX -DLINUX"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines