--- projects/cms/source/ihost/Makefile 2002/05/13 12:05:22 1.1 +++ projects/cms/source/ihost/Makefile 2002/05/13 13:44:41 1.2 @@ -1,7 +1,9 @@ -# $Id: Makefile,v 1.1 2002/05/13 12:05:22 tdb Exp $ +# $Id: Makefile,v 1.2 2002/05/13 13:44:41 tdb Exp $ # defines that should be set DEFS= +# libraries that should be set +LIBS= # where libukcprog can be found for compiling LIBUKCPROG = libukcprog @@ -11,8 +13,7 @@ LIBSTATGRAB = statgrab CFLAGS = -O3 -Wall INCLUDES = -I${LIBUKCPROG} -I${LIBSTATGRAB} -LIBS = ${LIBUKCPROG}/libukcprog.a ${LIBSTATGRAB}/libstatgrab.a \ - -lnsl -lsocket +OURLIBS = ${LIBUKCPROG}/libukcprog.a ${LIBSTATGRAB}/libstatgrab.a all: @echo "Must use one of the following targets :-" @@ -31,16 +32,16 @@ ihost.o: ihost.c ${LIBUKCPROG}/ukcprog.h ${LIBSTATGRAB ${CC} ${DEFS} ${CFLAGS} -c ${INCLUDES} ihost.c ihost: ihost.o ${LIBUKCPROG}/libukcprog.a ${LIBSTATGRAB}/libstatgrab.a - ${CC} ${CFLAGS} -o ihost ihost.o ${LIBS} + ${CC} ${CFLAGS} -o ihost ihost.o ${OURLIBS} ${LIBS} solaris: - $(MAKE) ihost DEFS=-DSOLARIS + $(MAKE) ihost DEFS="-DSOLARIS" LIBS="-lnsl -lsocket -lkstat" linux: - $(MAKE) ihost DEFS=-DLINUX + $(MAKE) ihost DEFS="-DLINUX" freebsd: - $(MAKE) ihost DEFS=-DFREEBSD + $(MAKE) ihost DEFS="-DFREEBSD" oldlinux: $(MAKE) ihost DEFS="-DOLDLINUX -DLINUX"