clean: backend-clean utils-clean lib-clean daemon-clean proxy-clean cli-clean tests-clean
-install: backend-install utils-install lib-install daemon-install proxy-install cli-install
+install: utils-install lib-install daemon-install proxy-install cli-install
check: all
$(MAKE) -C tests check
clean: data-clean mutex-clean network-clean
-install: data-install mutex-install network-install
-
%-all:
@echo $@ | sed 's,\([a-z]*\)-all,echo "building backend/\1"; $(MAKE) -C \1 all;,g' | sh
%-clean:
@echo $@ | sed 's,\([a-z]*\)-clean,echo "cleaning backend/\1"; $(MAKE) -C \1 clean;,g' | sh
-%-install:
- @echo $@ | sed 's,\([a-z]*\)-install,echo "installing backend/\1"; $(MAKE) -C \1 install;,g' | sh
-
#!/usr/bin/make
#
-# Makefile to build the chosen data backend for Virtualized Super Computer Management
+# Makefile to build the data backends for Virtualized Super Computer Management
#
# Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
# Copyright (C) 2009 Maximilian Wilhelm <max@rfc2324.org>
clean: file-clean
-install: file-install
-
%-all:
@echo $@ | sed 's,\([a-z]*\)-all,echo "building backend/data/\1"; $(MAKE) -C \1 all;,g' | sh
%-clean:
@echo $@ | sed 's,\([a-z]*\)-clean,echo "cleaning backend/data/\1"; $(MAKE) -C \1 clean;,g' | sh
-%-install:
- @echo $@ | sed 's,\([a-z]*\)-install,echo "installing backend/data/\1"; $(MAKE) -C \1 install;,g' | sh
#!/usr/bin/make
#
-# Makefile to build the Utilities for Virtualized Super Computer Management
+# Makefile to build the file based data backend for Virtualized Super Computer Management
#
# Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
# Copyright (C) 2009 Maximilian Wilhelm <max@rfc2324.org>
include ../../../config.mk
OBJS = data.o
-TARGET = libvscmgmt-data-file.so
+TARGET = libvscmgmt-data-file.a
#
# Rules
#
-.PHONY: all clean install
+.PHONY: all clean
all: $(TARGET)
clean:
rm -rf $(TARGET) $(OBJS)
-install:
- mkdir -p $(PREFIX)
- @echo "> installing $(TARGET)"
- install -c -m 755 $(TARGET) $(PREFIX)/lib/$(TARGET)
-
$(TARGET): $(OBJS)
@echo "> linking $(TARGET)"
- $(CC) -shared -o $(TARGET) $(OBJS) $(LDFLAGS)
+ ar rcs $(TARGET) $(OBJS)
#!/usr/bin/make
#
-# Makefile to build the chosen mutex backend for Virtualized Super Computer Management
+# Makefile to build the mutex backends for Virtualized Super Computer Management
#
# Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
# Copyright (C) 2009 Maximilian Wilhelm <max@rfc2324.org>
#!/usr/bin/make
#
-# Makefile to build the Utilities for Virtualized Super Computer Management
+# Makefile to build the none based mutex backend for Virtualized Super Computer Management
#
# Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
# Copyright (C) 2009 Maximilian Wilhelm <max@rfc2324.org>
include ../../../config.mk
OBJS = mutex.o
-TARGET = libvscmgmt-mutex-none.so
+TARGET = libvscmgmt-mutex-none.a
#
# Rules
#
-.PHONY: all clean install
+.PHONY: all clean
all: $(TARGET)
clean:
rm -rf $(TARGET) $(OBJS)
-install:
- mkdir -p $(PREFIX)
- @echo "> installing $(TARGET)"
- install -c -m 755 $(TARGET) $(PREFIX)/lib/$(TARGET)
-
$(TARGET): $(OBJS)
@echo "> linking $(TARGET)"
- $(CC) -shared -o $(TARGET) $(OBJS) $(LDFLAGS)
+ ar rcs $(TARGET) $(OBJS)
#!/usr/bin/make
#
-# Makefile to build the Utilities for Virtualized Super Computer Management
+# Makefile to build the pthread based mutex backend for Virtualized Super Computer Management
#
# Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
# Copyright (C) 2009 Maximilian Wilhelm <max@rfc2324.org>
include ../../../config.mk
OBJS = mutex.o
-TARGET = libvscmgmt-mutex-pthread.so
+TARGET = libvscmgmt-mutex-pthread.a
#
# Rules
#
-.PHONY: all clean install
+.PHONY: all clean
all: $(TARGET)
clean:
rm -rf $(TARGET) $(OBJS)
-install:
- mkdir -p $(PREFIX)
- @echo "> installing $(TARGET)"
- install -c -m 755 $(TARGET) $(PREFIX)/lib/$(TARGET)
-
$(TARGET): $(OBJS)
@echo "> linking $(TARGET)"
- $(CC) -shared -o $(TARGET) $(OBJS) $(LDFLAGS)
+ ar rcs $(TARGET) $(OBJS)
/*
- * mutex.c: Pthread based mutex backed for Virtualized Super Computer Management
+ * mutex.c: Pthread based mutex backend for Virtualized Super Computer Management
*
* Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
*
#!/usr/bin/make
#
-# Makefile to build the chosen network driver for Virtualized Super Computer Management
+# Makefile to build network backends for Virtualized Super Computer Management
#
# Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
# Copyright (C) 2009 Maximilian Wilhelm <max@rfc2324.org>
# Rules
#
-.PHONY: all clean install
+.PHONY: all clean
all: dhcponly-all
clean: dhcponly-clean
-install: dhcponly-install
-
%-all:
@echo $@ | sed 's,\([a-z]*\)-all,echo "building backend/network/\1"; $(MAKE) -C \1 all;,g' | sh
%-clean:
@echo $@ | sed 's,\([a-z]*\)-clean,echo "cleaning backend/network/\1"; $(MAKE) -C \1 clean;,g' | sh
-
-%-install:
- @echo $@ | sed 's,\([a-z]*\)-install,echo "installing backend/network/\1"; $(MAKE) -C \1 install;,g' | sh
-
-
-
#!/usr/bin/make
#
-# Makefile to build the Utilities for Virtualized Super Computer Management
+# Makefile to build the DHCP only based network backend for Virtualized Super Computer Management
#
# Copyright (C) 2009 Matthias Bolte <matthias.bolte@googlemail.com>
#
include ../../../config.mk
OBJS = network.o
-TARGET = libvscmgmt-network-dhcponly.so
+TARGET = libvscmgmt-network-dhcponly.a
#
# Rules
#
-.PHONY: all clean install
+.PHONY: all clean
all: $(TARGET)
clean:
rm -rf $(TARGET) $(OBJS)
-install:
- mkdir -p $(PREFIX)
- @echo "> installing $(TARGET)"
- install -c -m 755 $(TARGET) $(PREFIX)/lib/$(TARGET)
-
$(TARGET): $(OBJS)
@echo "> linking $(TARGET)"
- $(CC) -shared -o $(TARGET) $(OBJS) $(LDFLAGS)
+ ar rcs $(TARGET) $(OBJS)
# Fancy gcc options
#
-# libvirt
-CFLAGS += $(shell pkg-config libvirt --cflags)
-LDFLAGS += $(shell pkg-config libvirt --libs)
-
# data backend
LDFLAGS += -L ../backend/data/$(DATA_BACKEND) -lvscmgmt-data-$(DATA_BACKEND)
+# mutex backend
+LDFLAGS += -L ../backend/mutex/$(MUTEX_BACKEND) -lvscmgmt-mutex-$(MUTEX_BACKEND)
+
# network backend
LDFLAGS += -L ../backend/network/$(NETWORK_BACKEND) -lvscmgmt-network-$(NETWORK_BACKEND)
+# libvirt
+CFLAGS += $(shell pkg-config libvirt --cflags)
+LDFLAGS += $(shell pkg-config libvirt --libs)
+
#
# Rules
#
# libvscmgmt-utils
LDFLAGS += -L ../utils -lvscmgmt-utils
-# libvscmgmt-data-$(DATA_BACKEND)
-LDFLAGS += -L ../backend/data/$(DATA_BACKEND) -lvscmgmt-data-$(DATA_BACKEND)
-
-# libvscmgmt-mutex-$(MUTEX_BACKEND)
-LDFLAGS += -L ../backend/mutex/$(MUTEX_BACKEND) -lvscmgmt-mutex-$(MUTEX_BACKEND)
-
-# libvscmgmt-network-$(NETWORK_BACKEND)
-LDFLAGS += -L ../backend/network/$(NETWORK_BACKEND) -lvscmgmt-network-$(NETWORK_BACKEND)
-
-LDPATH = ../lib:../utils:../backend/data/$(DATA_BACKEND):../backend/mutex/$(MUTEX_BACKEND):../backend/network/$(NETWORK_BACKEND)
-
#
# Rules
#
rm -rf $(TESTS) *.o
check: all
- @echo $(TESTS) | sed 's,^,./,g;s, ,\; ./,g' | LD_LIBRARY_PATH=$(LDPATH) sh
+ @echo $(TESTS) | sed 's,^,./,g;s, ,\; ./,g' | LD_LIBRARY_PATH=../lib:../utils sh
check-gdb: all
@echo r > .gdbinit
@echo bt >> .gdbinit
- @echo $(TESTS) | sed 's,^,./,g;s, ,\n./,g' | LD_LIBRARY_PATH=$(LDPATH) xargs -L 1 gdb
-
-install:
- @echo "> nothing to install"
+ @echo $(TESTS) | sed 's,^,./,g;s, ,\n./,g' | LD_LIBRARY_PATH=../lib:../utils xargs -L 1 gdb
%.test: %.o
@echo "> linking $@"