summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/Makefile.defs
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/Makefile.defs')
-rw-r--r--2005/i/robert/src/Makefile.defs29
1 files changed, 29 insertions, 0 deletions
diff --git a/2005/i/robert/src/Makefile.defs b/2005/i/robert/src/Makefile.defs
new file mode 100644
index 0000000..6b69819
--- /dev/null
+++ b/2005/i/robert/src/Makefile.defs
@@ -0,0 +1,29 @@
+CXXFLAGS = -O2 -Wall -g
+CPPFLAGS = -MMD $(INCLUDES)
+INCLUDES = -I$(SRCDIR)
+
+SUBDIRS = log scheduler utils utils/meta
+
+LINK.o = $(CXX) $(LDFLAGS) $(TARGET_ARCH)
+VPATH = $(SUBDIRS:%=$(SRCDIR)/%)
+
+PROGRAMS =
+LIBS =
+
+all: build-all
+
+# Inclus les autres répertoires.
+include $(SUBDIRS:%=$(SRCDIR)/%/Makefile.defs)
+
+OBJECTS = $(filter %.o,$(foreach PROGRAM,$(PROGRAMS),$($(PROGRAM)_OBJECTS)))
+
+build-all: $(PROGRAMS)
+
+# Dépendances.
+-include $(OBJECTS:%.o=%.d)
+
+# Ménage.
+clean:
+ rm -f *.o *.d $(PROGRAMS)
+
+.PHONY: all build-all clean