summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/Makefile.defs
diff options
context:
space:
mode:
authorschodet2005-01-17 15:04:29 +0000
committerschodet2005-01-17 15:04:29 +0000
commit86c65de3ae99420ca7a2af406a97ade6aa989774 (patch)
tree6023b98ae17f991ba92e6f9a0dc698ee8beb524d /2005/i/robert/src/Makefile.defs
parented3f0dae905fad5a6659657e7b4ee5f08c00ccd8 (diff)
Initial revision
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