1 | #-----[ Directory ]---------------------------------------- |
---|
2 | |
---|
3 | DIR_CACHE = Cache |
---|
4 | DIR_DATA = Data |
---|
5 | DIR_ENDIANNESS = Endianness |
---|
6 | DIR_QUEUE = Queue |
---|
7 | DIR_RAMLOCK = RamLock |
---|
8 | DIR_SIM2OS = Sim2OS |
---|
9 | DIR_TTY = TTY |
---|
10 | |
---|
11 | #-----[ Variable ]----------------------------------------- |
---|
12 | |
---|
13 | OBJECTS_DEPS = $(patsubst $(DIR_CACHE)/$(DIR_SRC)/%.cpp,$(DIR_CACHE)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_CACHE)/$(DIR_SRC)/*.cpp)) \ |
---|
14 | $(patsubst $(DIR_DATA)/$(DIR_SRC)/%.cpp,$(DIR_DATA)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_DATA)/$(DIR_SRC)/*.cpp)) \ |
---|
15 | $(patsubst $(DIR_DATA)/$(DIR_SRC)/%.c,$(DIR_DATA)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_DATA)/$(DIR_SRC)/*.c)) \ |
---|
16 | $(patsubst $(DIR_ENDIANNESS)/$(DIR_SRC)/%.cpp,$(DIR_ENDIANNESS)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_ENDIANNESS)/$(DIR_SRC)/*.cpp)) \ |
---|
17 | $(patsubst $(DIR_QUEUE)/$(DIR_SRC)/%.cpp,$(DIR_QUEUE)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_QUEUE)/$(DIR_SRC)/*.cpp)) \ |
---|
18 | $(patsubst $(DIR_RAMLOCK)/$(DIR_SRC)/%.cpp,$(DIR_RAMLOCK)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_RAMLOCK)/$(DIR_SRC)/*.cpp)) \ |
---|
19 | $(patsubst $(DIR_SIM2OS)/$(DIR_SRC)/%.cpp,$(DIR_SIM2OS)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_SIM2OS)/$(DIR_SRC)/*.cpp)) \ |
---|
20 | $(patsubst $(DIR_TTY)/$(DIR_SRC)/%.cpp,$(DIR_TTY)/$(DIR_OBJ)/%.o,$(wildcard $(DIR_TTY)/$(DIR_SRC)/*.cpp)) |
---|
21 | |
---|
22 | |
---|
23 | #-----[ Rules ]-------------------------------------------- |
---|
24 | |
---|
25 | all : |
---|
26 | @\ |
---|
27 | $(MAKE) --directory=$(DIR_CACHE) all; \ |
---|
28 | $(MAKE) --directory=$(DIR_DATA) all; \ |
---|
29 | $(MAKE) --directory=$(DIR_ENDIANNESS) all; \ |
---|
30 | $(MAKE) --directory=$(DIR_QUEUE) all; \ |
---|
31 | $(MAKE) --directory=$(DIR_RAMLOCK) all; \ |
---|
32 | $(MAKE) --directory=$(DIR_SIM2OS) all; \ |
---|
33 | $(MAKE) --directory=$(DIR_TTY) all; \ |
---|
34 | $(MAKE) all_environment; |
---|
35 | |
---|
36 | clean : |
---|
37 | @\ |
---|
38 | $(MAKE) --directory=$(DIR_CACHE) clean; \ |
---|
39 | $(MAKE) --directory=$(DIR_DATA) clean; \ |
---|
40 | $(MAKE) --directory=$(DIR_ENDIANNESS) clean; \ |
---|
41 | $(MAKE) --directory=$(DIR_QUEUE) clean; \ |
---|
42 | $(MAKE) --directory=$(DIR_RAMLOCK) clean; \ |
---|
43 | $(MAKE) --directory=$(DIR_SIM2OS) clean; \ |
---|
44 | $(MAKE) --directory=$(DIR_TTY) clean; \ |
---|
45 | $(MAKE) environment_clean; \ |
---|
46 | $(RM) tty_*; |
---|
47 | |
---|
48 | |
---|
49 | help : |
---|
50 | @$(MAKE) environment_help |
---|
51 | |
---|
52 | include Makefile.Environment |
---|