summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/Makefile.defs
blob: 3415c27a09b91f08e0058bad732e3dcc816752e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CXXFLAGS = -O2 -Wall -g
CPPFLAGS = -MMD $(INCLUDES)
INCLUDES = -I$(SRCDIR)

# Attention, il y a un probl�me de d�pendences dans l'ordre des SUBDIRS �
# cause de la g�n�ration des r�gles.
SUBDIRS = log serial timer \
	  utils utils/meta \
	  scheduler

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