TARGET=default
include ./base.mk
-XSEG_CLEAN_TARGETS=$(patsubst %,clean-%,$(XSEG_DOMAIN_TARGETS))
-XSEG_INSTALL_TARGETS=$(patsubst %,install-%,$(XSEG_DOMAIN_TARGETS))
+FILES="base.mk"
+FILES+="config.env"
+FILES+="envsetup"
+FILES+="Makefile"
+FILES+="launch"
+
+
+XSEG_BUILD_TARGETS=$(patsubst %,build-%,$(XSEG_DIRS))
+XSEG_CLEAN_TARGETS=$(patsubst %,clean-%,$(XSEG_DIRS))
+XSEG_INSTALL_TARGETS=$(patsubst %,install-%,$(XSEG_DIRS))
+XSEG_INSTALLSRC_TARGETS=$(patsubst %,install-src-%,$(XSEG_DIRS))
default: targets
target-list:
@echo $(XSEG_DOMAIN_TARGETS)
-targets: $(XSEG_DOMAIN_TARGETS)
+targets: $(XSEG_BUILD_TARGETS)
clean: $(XSEG_CLEAN_TARGETS)
+ rm $(CONFIG)
+
+install: $(XSEG_INSTALL_TARGETS)
-install: install-src $(XSEG_INSTALL_TARGETS)
+install-src: $(XSEG_INSTALLSRC_TARGETS) $(XSEG_INSTALLSRC_DIRS)
+ install -d $(DESTDIR)$(srcdir)/lib
+ install -d $(DESTDIR)$(srcdir)/lib/user
+ install -d $(DESTDIR)$(srcdir)/lib/kernel
+ install -d $(DESTDIR)$(srcdir)/
+ install -m 755 -t $(DESTDIR)$(srcdir) envsetup
+ install -m 755 -t $(DESTDIR)$(srcdir) launch
+ install -m 644 -t $(DESTDIR)$(srcdir) config.env
+ install -m 644 -t $(DESTDIR)$(srcdir) Makefile
+ install -m 644 -t $(DESTDIR)$(srcdir) base.mk
-install-src:
- mkdir -p $(DESTDIR)$(srcdir)
- cp -r * $(DESTDIR)$(srcdir)
+# @for f in $(FILES); do \
+# install -m 644 -t $(DESTDIR)$(srcdir) $$f ; \
+# done
-.PHONY: $(XSEG_DOMAIN_TARGETS)
-$(XSEG_DOMAIN_TARGETS):
- @for f in $(XSEG_DOMAIN_DIRS); do \
- echo " "; \
- echo "=== $@ in $$f ==="; \
- echo " "; \
- make -C $$f/$@ TARGET=$@ default || exit 1; \
- echo " "; \
- done
- @echo " "
+
+.PHONY: $(XSEG_BUILD_TARGETS)
+$(XSEG_BUILD_TARGETS):
+ @echo "" ;
+ @echo "=== $@ ===";
+ @make -C $(@:build-%=%) default || exit 1;
+ @echo "" ;
.PHONY: $(XSEG_INSTALL_TARGETS)
$(XSEG_INSTALL_TARGETS):
- @for f in $(XSEG_DOMAIN_DIRS); do \
- echo " "; \
- echo "=== $@ in $$f ==="; \
- echo " "; \
- make -C $$f/$(@:install-%=%) TARGET=$@ install || true; \
- echo " "; \
- done
- @echo " "
+ @echo "" ;
+ @echo "=== $@ ===";
+ @make -C $(@:install-%=%) install || true;
+ @echo "" ;
+
+.PHONY: $(XSEG_INSTALLSRC_TARGETS)
+$(XSEG_INSTALLSRC_TARGETS):
+ @echo "" ;
+ @echo "=== $@ ===";
+ @make -C $(@:install-src-%=%) install-src || true;
+ @echo "" ;
.PHONY: $(XSEG_CLEAN_TARGETS)
$(XSEG_CLEAN_TARGETS):
- @for f in $(XSEG_DOMAIN_DIRS); do \
- echo " "; \
- echo "=== $@ in $$f ==="; \
- echo " "; \
- make -C $$f/$(@:clean-%=%) TARGET=$@ clean || true; \
- echo " "; \
- done
- @echo " "
+ @echo "" ;
+ @echo "=== $@ ===";
+ @make -C $(@:clean-%=%) clean || true;
+ @echo "" ;
distclean: $(XSEG_CLEAN_TARGETS)
rm -f lib/user/*.so* lib/user/*.a
export CSTD=-std=gnu99 -pedantic
endif
+
bindir="/usr/bin/"
libdir="/usr/lib/"
pythondir="/usr/lib/python2.7/"
moduledir="/lib/modules/`uname -r`/extra/"
srcdir="/usr/src/archipelago-kernel-dkms-VERSION/"
+ganetidir="/usr/share/ganeti/extstorage/vlmc/"
INC=-I$(BASE)
INC+=-I$(BASE)/peers/$(TARGET)
CONFIG=./config.mk
-default:
+#default:
-.PHONY: clean-config
+#.PHONY: clean-config
-clean: clean-config
+#clean: clean-config
-clean-config:
- rm -f $(CONFIG)
+#clean-config:
+# rm -f $(CONFIG)
ifndef BASE
exists=$(shell [ -f "$(CONFIG)" ] && echo exists)
# Order is significant due to dependencies
# (e.g. 'peers' should be last).
-XSEG_DIRS="xq xseg"
-XSEG_DOMAIN_DIRS="util_libs sys drivers peers"
+XSEG_DIRS="tools xtypes xseg sys drivers peers"
+#XSEG_DOMAIN_DIRS="util_libs sys drivers peers"
--- /dev/null
+.PHONY: install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+
+SUBDIR:=$(subst $(XSEG_HOME)/,,$(CURDIR))
+XSEG_CLEAN_TARGETS=$(patsubst %,clean-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALL_TARGETS=$(patsubst %,install-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALLSRC_TARGETS=$(patsubst %,install-src-%,$(XSEG_DOMAIN_TARGETS))
+
+
+default: $(XSEG_DOMAIN_TARGETS)
+
+install: $(XSEG_INSTALL_TARGETS)
+
+clean: $(XSEG_CLEAN_TARGETS)
+
+.PHONY: $(XSEG_DOMAIN_TARGETS)
+$(XSEG_DOMAIN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR) ===";
+ @echo " ";
+ @make -C $@ TARGET=$@ default || exit 1;
+ @echo " ";
+
+.PHONY: $(XSEG_INSTALL_TARGETS)
+$(XSEG_INSTALL_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-%=%) TARGET=$@ install || true;
+ @echo " ";
+
+
+.PHONY: $(XSEG_INSTALLSRC_TARGETS)
+$(XSEG_INSTALLSRC_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-src-%=%) TARGET=$@ install-src || true;
+ @echo " ";
+
+.PHONY: $(XSEG_CLEAN_TARGETS)
+$(XSEG_CLEAN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:clean-%=%) TARGET=$@ clean || true;
+ @echo " ";
+
+
+
+install-src: $(XSEG_INSTALLSRC_TARGETS)
+ @install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
# or implied, of GRNET S.A.
#
-.PHONY: default all clean
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
obj-m += xseg_posix.o
obj-m += xseg_pthread.o
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
default: all
$(BASE)/sys/kernel/Module.symvers:
cp -vaf xseg_pthread.ko xseg_segdev.ko xseg_posix.ko $(LIBDIR)
install:
- mkdir -p $(DESTDIR)$(moduledir)
- cp xseg_segdev.ko $(DESTDIR)$(moduledir)
- cp xseg_posix.ko $(DESTDIR)$(moduledir)
- cp xseg_pthread.ko $(DESTDIR)$(moduledir)
+ install -d $(DESTDIR)$(moduledir)
+ install -m 644 -t $(DESTDIR)$(moduledir) xseg_segdev.ko
+ install -m 644 -t $(DESTDIR)$(moduledir) xseg_posix.ko
+ install -m 644 -t $(DESTDIR)$(moduledir) xseg_pthread.ko
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
clean:
rm -f Module.symvers
include $(XSEG_HOME)/base.mk
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+
DRIVERS=xseg_posix xseg_segdev xseg_pthread
DRVOBJS=$(DRIVERS:=.o)
DRVSOS=$(DRIVERS:=.so)
.PHONY: lib
lib:
cp -vaf $(DRVSOS) $(LIB)
+
+.PHONY: install-src
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
+.PHONY: install
+install:
+
+
clean:
rm -f $(DRVOBJS) $(DRVSOS)
--- /dev/null
+.PHONY: install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+
+SUBDIR:=$(subst $(XSEG_HOME)/,,$(CURDIR))
+XSEG_CLEAN_TARGETS=$(patsubst %,clean-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALL_TARGETS=$(patsubst %,install-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALLSRC_TARGETS=$(patsubst %,install-src-%,$(XSEG_DOMAIN_TARGETS))
+
+
+default: $(XSEG_DOMAIN_TARGETS)
+
+install: $(XSEG_INSTALL_TARGETS)
+
+clean: $(XSEG_CLEAN_TARGETS)
+
+.PHONY: $(XSEG_DOMAIN_TARGETS)
+$(XSEG_DOMAIN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR) ===";
+ @echo " ";
+ @make -C $@ TARGET=$@ default || exit 1;
+ @echo " ";
+
+.PHONY: $(XSEG_INSTALL_TARGETS)
+$(XSEG_INSTALL_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-%=%) TARGET=$@ install || true;
+ @echo " ";
+
+
+.PHONY: $(XSEG_INSTALLSRC_TARGETS)
+$(XSEG_INSTALLSRC_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-src-%=%) TARGET=$@ install-src || true;
+ @echo " ";
+
+.PHONY: $(XSEG_CLEAN_TARGETS)
+$(XSEG_CLEAN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:clean-%=%) TARGET=$@ clean || true;
+ @echo " ";
+
+
+
+install-src: $(XSEG_INSTALLSRC_TARGETS)
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
include $(XSEG_HOME)/base.mk
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+
ifeq (,$(KVER))
KVER := $(shell uname -r)
endif
mkdir -p $(DESTDIR)$(moduledir)
cp xsegbd.ko $(DESTDIR)$(moduledir)
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
clean:
rm -f Module.symvers
make -C /lib/modules/$(KVER)/build M=$(PWD) V=$(V) clean
# or implied, of GRNET S.A.
#
-.PHONY: default all clean install
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
PEERS := xseg mt-sosd dummy mt-mapperd pfiled vlmc-xseg st-vlmcd mt-pfiled
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+FILES+=""
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+
default: $(PEERS)
#all: filed xseg sosd vlmcd mapperd
$(CC) $(CFLAGS) -o $@ $< $(INC) -L$(LIB) -lxseg
install:
- mkdir -p $(DESTDIR)$(bindir)
+ install -d $(DESTDIR)$(bindir)
@for p in $(PEERS); do\
- echo "cp $$p $(DESTDIR)$(bindir)" ; \
- cp $$p $(DESTDIR)$(bindir) ; \
+ install -m 755 -t $(DESTDIR)$(bindir) $$p ; \
+ done
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR)
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
done
clean:
--- /dev/null
+.PHONY: install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+
+SUBDIR:=$(subst $(XSEG_HOME)/,,$(CURDIR))
+XSEG_CLEAN_TARGETS=$(patsubst %,clean-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALL_TARGETS=$(patsubst %,install-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALLSRC_TARGETS=$(patsubst %,install-src-%,$(XSEG_DOMAIN_TARGETS))
+
+
+default: $(XSEG_DOMAIN_TARGETS)
+
+install: $(XSEG_INSTALL_TARGETS)
+
+clean: $(XSEG_CLEAN_TARGETS)
+
+.PHONY: $(XSEG_DOMAIN_TARGETS)
+$(XSEG_DOMAIN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR) ===";
+ @echo " ";
+ @make -C $@ TARGET=$@ default || exit 1;
+ @echo " ";
+
+.PHONY: $(XSEG_INSTALL_TARGETS)
+$(XSEG_INSTALL_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-%=%) TARGET=$@ install || true;
+ @echo " ";
+
+
+.PHONY: $(XSEG_INSTALLSRC_TARGETS)
+$(XSEG_INSTALLSRC_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-src-%=%) TARGET=$@ install-src || true;
+ @echo " ";
+
+.PHONY: $(XSEG_CLEAN_TARGETS)
+$(XSEG_CLEAN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:clean-%=%) TARGET=$@ clean || true;
+ @echo " ";
+
+
+
+install-src: $(XSEG_INSTALLSRC_TARGETS)
+ @install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
# or implied, of GRNET S.A.
#
-.PHONY: clean
+.PHONY: clean default install install-src
include $(XSEG_HOME)/base.mk
KVER := $(shell uname -r)
endif
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
KDIR := /lib/modules/$(KVER)/build
PWD := $(shell pwd)
ln -sf $< $@
install:
- mkdir -p $(DESTDIR)$(moduledir)
- cp xseg.ko $(DESTDIR)$(moduledir)
- cp segdev.ko $(DESTDIR)$(moduledir)
+ install -d $(DESTDIR)$(moduledir)
+ install -t $(DESTDIR)$(moduledir) xseg.ko
+ install -t $(DESTDIR)$(moduledir) segdev.ko
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR)
+ @for f in $(FILES); do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
clean:
rm -f xq.k.c xpool.k.c xhash.k.c xheap.k.c xobj.k.c xseg.k.c
# or implied, of GRNET S.A.
#
-.PHONY: default all clean drivers install
+.PHONY: default all clean drivers install install-src
include $(XSEG_HOME)/base.mk
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+
+EFILES+="make_symbol_map.sh"
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
MAJOR=0
MINOR=0.1
AR=ar
install:
make -C python install
- mkdir -p $(DESTDIR)$(libdir)
- cp -vaf libxseg.so $(DESTDIR)$(libdir)
- cp -vaf libxseg.so.$(MAJOR) $(DESTDIR)$(libdir)
- cp -vaf libxseg.so.$(MAJOR).$(MINOR) $(DESTDIR)$(libdir)
+ install -d $(DESTDIR)$(libdir)
+ install -t $(DESTDIR)$(libdir) libxseg.so
+ install -t $(DESTDIR)$(libdir) libxseg.so.$(MAJOR)
+ install -t $(DESTDIR)$(libdir) libxseg.so.$(MAJOR).$(MINOR)
+
+install-src:
+ make -C xq install-src
+ make -C xpool install-src
+ make -C xhash install-src
+ make -C xheap install-src
+ make -C xobj install-src
+ make -C python install-src
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+ @for f in $(EFILES) ; do \
+ install -m 755 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
clean:
make -C xq clean
# or implied, of GRNET S.A.
#
-.PHONY: default all clean install
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
+FILES="Makefile"
+FILES+=$(shell ls *.py)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+
H2XML = h2xml
XML2PY = xml2py
# cp -r xseg $(DESTDIR)$(pythondir)
python setup.py install --install-layout=deb --root=$(DESTDIR)
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR)/xseg ;
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR)/xseg xseg/__init__.py ; \
+
+
+
clean:
rm -f xseg.xml xprotocol.xml xseg/xseg_api.py xseg/xseg_api.pyc xseg/xprotocol.py xseg/xprotocol.pyc xseg/__init__.pyc
# or implied, of GRNET S.A.
#
-.PHONY: default all clean
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
DEBUG=-g
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+#FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
default: all
all: xhash.o xhash.pic.o xhash_test
xhash.pic.o: $(BASE)/xtypes/xhash.c $(BASE)/xtypes/xhash.h $(BASE)/xtypes/xlock.h
$(CC) $(CFLAGS) $(INC) -DVAL_OVERLOAD -fPIC -c -o $@ $<
+install:
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
clean:
rm -f xhash.o xhash.pic.o xhash_test
# or implied, of GRNET S.A.
#
-.PHONY: default all clean
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
DEBUG=-g
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+#FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
default: all
-all: xheap.o xheap.pic.o xheap_test
+all: xheap.o xheap.pic.o xheap_test
$(BASE)/sys/user/xseg_user.o:
make -C $(BASE)/sys/user xseg_user.o
xheap.pic.o: $(BASE)/xtypes/xheap.c $(BASE)/xtypes/xheap.h $(BASE)/xtypes/xlock.h
$(CC) $(CFLAGS) $(INC) -fPIC -c -o $@ $<
+install:
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
clean:
rm -f xheap.o xheap.pic.o xheap_test
# or implied, of GRNET S.A.
#
-.PHONY: default all clean
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
DEBUG=-g
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+#FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
default: all
all: xobj.o xobj.pic.o xobj_test
clean:
rm -f xobj.o xobj.pic.o xobj_test
+
+install:
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
# or implied, of GRNET S.A.
#
-.PHONY: default all clean
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
DEBUG=-g
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+#FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
default: all
all: xpool.o xpool.pic.o
xpool.pic.o: $(BASE)/xtypes/xpool.c $(BASE)/xtypes/xpool.h $(BASE)/xtypes/xlock.h
$(CC) $(CFLAGS) $(INC) -fPIC -c -o $@ $<
+install:
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
clean:
rm -f xpool.o xpool.pic.o
# or implied, of GRNET S.A.
#
-.PHONY: default all clean
+.PHONY: default all clean install install-src
include $(XSEG_HOME)/base.mk
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+#FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
DEBUG=-g
default: all
clean:
rm -f xq_lock_test xq_test xq.o xq.pic.o
+
+install:
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
--- /dev/null
+.PHONY: default clean install install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+FILES+="xseg_devshell.sh"
+
+EFILES="archipelago"
+EFILES+="vlmc"
+EFILES+="create_initializer"
+EFILES+="xseg-domain-targets"
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+default:
+
+clean:
+
+install:
+ make -C ext_scripts install
+ install -d $(DESTDIR)$(bindir)
+ install -m 755 -t $(DESTDIR)$(bindir) archipelago
+ install -m 755 -t $(DESTDIR)$(bindir) vlmc
+
+install-src:
+ make -C ext_scripts install-src
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+ @for f in $(EFILES) ; do \
+ install -m 755 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
--- /dev/null
+.PHONY: default clean install install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+FILES+="parameters.list"
+
+EFILES="vlmc_wrapper.py"
+EFILES+="attach"
+EFILES+="detach"
+EFILES+="create"
+EFILES+="grow"
+EFILES+="remove"
+EFILES+="verify"
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+default:
+
+clean:
+
+install:
+ install -d $(DESTDIR)$(ganetidir)
+ @for f in $(EFILES) ; do \
+ install -m 755 -t $(DESTDIR)$(ganetidir) $$f ; \
+ done
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+ @for f in $(EFILES) ; do \
+ install -m 755 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
--- /dev/null
+.PHONY: install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+#FILES+=$(shell ls *.h)
+
+SUBDIR:=$(subst $(XSEG_HOME)/,,$(CURDIR))
+XSEG_CLEAN_TARGETS=$(patsubst %,clean-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALL_TARGETS=$(patsubst %,install-%,$(XSEG_DOMAIN_TARGETS))
+XSEG_INSTALLSRC_TARGETS=$(patsubst %,install-src-%,$(XSEG_DOMAIN_TARGETS))
+
+
+default: $(XSEG_DOMAIN_TARGETS)
+
+install: $(XSEG_INSTALL_TARGETS)
+
+clean: $(XSEG_CLEAN_TARGETS)
+
+.PHONY: $(XSEG_DOMAIN_TARGETS)
+$(XSEG_DOMAIN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR) ===";
+ @echo " ";
+ @make -C $@ TARGET=$@ default || exit 1;
+ @echo " ";
+
+.PHONY: $(XSEG_INSTALL_TARGETS)
+$(XSEG_INSTALL_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-%=%) TARGET=$@ install || true;
+ @echo " ";
+
+
+.PHONY: $(XSEG_INSTALLSRC_TARGETS)
+$(XSEG_INSTALLSRC_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:install-src-%=%) TARGET=$@ install-src || true;
+ @echo " ";
+
+.PHONY: $(XSEG_CLEAN_TARGETS)
+$(XSEG_CLEAN_TARGETS):
+ @echo " ";
+ @echo "=== $@ in $(SUBDIR)===";
+ @echo " ";
+ @make -C $(@:clean-%=%) TARGET=$@ clean || true;
+ @echo " ";
+
+
+
+install-src: $(XSEG_INSTALLSRC_TARGETS)
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR)
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
# or implied, of GRNET S.A.
#
-default:
+.PHONY: default clean install install-src
+
+default:
+
+clean:
+
+install:
+
+install-src:
+
+
--- /dev/null
+.PHONY: default clean install install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+#FILES+="xseg.h"
+#FILES+="xseg.c"
+#FILES+="xseg_exports.h"
+#FILES+="domain.h"
+#FILES+="protocol.h"
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+default:
+
+clean:
+
+install:
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+
--- /dev/null
+.PHONY: default clean install install-src
+
+include $(XSEG_HOME)/base.mk
+
+FILES="Makefile"
+FILES+=$(shell ls *.h)
+FILES+=$(shell ls *.c)
+
+SUBDIR:=$(subst $(XSEG_HOME),,$(CURDIR))
+
+default:
+
+clean:
+
+install:
+
+install-src:
+ install -d $(DESTDIR)$(srcdir)$(SUBDIR) ;
+ @for f in $(FILES) ; do \
+ install -m 644 -t $(DESTDIR)$(srcdir)$(SUBDIR) $$f ; \
+ done
+