# $Id: Makefile.in,v 1.2 2003/04/22 19:59:58 fygrave Exp $ # # Copyright (C) 2001 Fyodor Yarochkin , # Ofir Arkin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. CC=@CC@ CXX=@CXX@ INSTALL=@INSTALL@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ INSTALL_DATA=@INSTALL_DATA@ DESTDIR= prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ mandir=@mandir@ srcdir=@srcdir@ PACKAGE=@PACKAGE@ VERSION=@VERSION@ CPPFLAGS=@CPPFLAGS@ CXXFLAGS=$(CPPFLAGS) @CXXFLAGS@ CFLAGS=$(CPPFLAGS) @CFLAGS@ -I @srcdir@/ -I ../libs-external/USI++/src/ LDFLAGS=@LDFLAGS@ LIBS=@LIBS@ INCLUDES=@HEADERS@ defines.h config.h SOURCES=@SOURCES@ OBJS=${SOURCES:.cc=.o} XPLIBS= xplib/libxplib.a ../libs-external/USI++/src/libusi++.a MODOBJS=xpmodules/alive_probe/alive_probe.a \ xpmodules/os_probe/os_probe.a $(XPLIBS) all: lib xprobe2 xprobe2: $(OBJS) modules $(CXX) $(CFLAGS) $(OBJS) $(MODOBJS) -o $@ $(LDFLAGS) $(LIBS) strip $@ modules: cd xpmodules; ${MAKE} lib: cd xplib; ${MAKE} .c.o: $(INCLUDES) $(CC) -c $(CFLAGS) $< .cc.o: $(INCLUDES) $(CXX) -c $(CFLAGS) $< clean: rm -f xprobe2 xprobe2.core core *.o cd xpmodules; ${MAKE} clean cd xplib; ${MAKE} clean distclean: clean rm -f config.h defines.h Makefile cd xpmodules; ${MAKE} distclean cd xplib; ${MAKE} distclean