diff --git a/server/Makefile b/server/Makefile index 85d4d2a..0697d96 100644 --- a/server/Makefile +++ b/server/Makefile @@ -13,12 +13,14 @@ include ../Makefile.top -TARGETS=fence_virtd libvirt.so +TARGETS=fence_virtd libvirt.so checkpoint.so fence_virtd_SOURCES = mcast.c main.c plugin.c libvirt_so_SOURCES = libvirt.c +checkpoint_so_SOURCES = virt.c vm_states.c + INCLUDES=-I../include\ -I/usr/include/openais -I/usr/include/libvirt \ -I/usr/include/nss3 -I/usr/include/nspr4 \ @@ -40,6 +42,9 @@ fence_virtd: ${fence_virtd_SOURCES:.c=.o} libvirt.so: ${libvirt_so_SOURCES:.c=.o} gcc -o $@ $^ $(LIBS) -shared +checkpoint.so: ${checkpoint_so_SOURCES:.c=.o} + gcc -o $@ $^ $(LIBS) -shared + %.o: %.c gcc $(CFLAGS) -c -o $@ $^ $(INCLUDES)