fence-virt/config/Makefile.in
Lon Hohberger 4f870c4fd0 Make symlink/compatibilty mode disabled by default
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-23 12:04:32 -04:00

57 lines
1.6 KiB
Makefile

###############################################################################
###############################################################################
##
## Copyright (C) 2009 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
LEX=@LEX@
YACC=@YACC@
TARGETS=libsimpleconfig.a
libsimpleconfig_a_SOURCE= y.tab.c \
config.c simpleconfig.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\" -Wno-unused
LIBS+=-L../../../cman/lib -L../../../ccs/lib -L${libdir}/openais \
-L../../../dlm/lib -lnss3 -lxml2
all: ${TARGETS}
libsimpleconfig.a: ${libsimpleconfig_a_SOURCE:.c=.o}
ar rc $@ $^
y.tab.c y.tab.h: config.y
$(YACC) -d $^
config.c: y.tab.h config.l
$(LEX) -oconfig.c config.l
%.o: %.c
gcc $(CFLAGS) -c -o $@ $^ $(INCLUDES)
clean:
rm -f ${TARGETS} *~ *.o testprog config.tab.c config.tab.h config.c
install:
if [ ! -d ${DESTDIR}/${sysconfdir} ]; then \
install -d ${DESTDIR}/${sysconfdir} ; \
fi
if [ ! -f ${DESTDIR}/${sysconfdir}/fence_virt.conf ]; then \
install -m 0644 example.conf ${DESTDIR}/${sysconfdir}/fence_virt.conf; \
fi