From 99e10c70c6476e4526c39d63719fc4894c6ab122 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <i-bird@localhost.localdomain> Date: Tue, 29 Dec 2015 12:47:00 -0500 Subject: [PATCH] Fixing examples + and gitignore --- example/VCluster/0_simple/Makefile | 21 +++++++++++++++++++++ example/VCluster/Makefile | 11 +++++++++++ 2 files changed, 32 insertions(+) create mode 100644 example/VCluster/0_simple/Makefile create mode 100644 example/VCluster/Makefile diff --git a/example/VCluster/0_simple/Makefile b/example/VCluster/0_simple/Makefile new file mode 100644 index 00000000..95471100 --- /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 00000000..63062d5b --- /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) + -- GitLab