fence-virt/client/Makefile
Lon Hohberger d72d4a754f Move options.c to client directory
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-31 09:37:21 -04:00

51 lines
1.4 KiB
Makefile

###############################################################################
###############################################################################
##
## Copyright (C) 2006 Red Hat, Inc.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions
## of the GNU General Public License v.2.
##
###############################################################################
###############################################################################
include=../Makefile.top
TARGETS=fence_virt fence_xvm
fence_virt_SOURCES = mcast.c serial.c main.c options.c
INCLUDES=-I../include\
-I/usr/include/openais -I/usr/include/libvirt \
-I/usr/include/nss3 -I/usr/include/nspr4 \
-I../../../cman/lib -I../../../ccs/lib -I/usr/include/libxml2 \
-I/usr/include/libvirt
CFLAGS+=-DFENCE_RELEASE_NAME=\"devel\"
LIBS+=-L../../../cman/lib -L../../../ccs/lib -L${libdir}/openais \
-L../../../dlm/lib -lnss3 -lxml2
all: ${TARGETS}
fence_xvm: fence_virt
ln -snf fence_virt fence_xvm
fence_virt: ${fence_virt_SOURCES:.c=.o}
gcc -o $@ $^ $(LIBS) -L../common -lfence_virt
%.o: %.c
gcc $(CFLAGS) -c -o $@ $^ $(INCLUDES)
install: all
# XXX hardcoded sbin
if [ ! -d /usr/sbin]; then \
install -d /usr/sbin; \
fi
install -m755 ${TARGETS} /usr/sbin
clean:
rm -f ${TARGETS} *.o *.d *~