diff --git a/example/VCluster/0_simple/Makefile b/example/VCluster/0_simple/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..95471100101e8ab43a96f7f5eccdff1fd37849bd --- /dev/null +++ b/example/VCluster/0_simple/Makefile @@ -0,0 +1,21 @@ +include ../../example.mk + +CC=mpic++ + +LDIR = + +OBJ = main.o + +%.o: %.cpp + $(CC) -O3 -c --std=c++11 -o $@ $< $(INCLUDE_PATH) + +vcluster: $(OBJ) + $(CC) -o $@ $^ $(CFLAGS) $(LIBS_PATH) $(LIBS) + +all: vcluster + +.PHONY: clean all + +clean: + rm -f *.o *~ core vcluster + diff --git a/example/VCluster/Makefile b/example/VCluster/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..63062d5be263b695c74fa60c6542aeed2fbeda88 --- /dev/null +++ b/example/VCluster/Makefile @@ -0,0 +1,11 @@ +SUBDIRS := $(wildcard */.) + +all clean: + for dir in $(SUBDIRS); do \ + $(MAKE) -C $$dir $@; \ + done + +clean: $(SUBDIRS) + +.PHONY: all clean $(SUBDIRS) +