1: #
2: # ----------------------------------------------------------------------
3: # T-Kernel 2.0 Software Package
4: #
5: # Copyright 2011 by Ken Sakamura.
6: # This software is distributed under the latest version of T-License 2.x.
7: # ----------------------------------------------------------------------
8: #
9: # Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
10: # Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
11: #
12: # ----------------------------------------------------------------------
13: #
14:
15: #
16: # Makefile for gmake
17: # T-Kernel/System Manager (common description)
18: #
19:
20: # source file dependencies (generated automatically)
21: DEPS = Dependencies
22: DEPENDENCIES_OUTPUT := $(DEPS)
23:
24: # ----------------------------------------------------------------------------
25:
26: # target object
27: TARGET = sysmgr.o
28:
29: S = ../../src
30:
31: # common source files
32: SRC += smmain.c system.c imalloc.c syslog.c \
33: device.c deviceio.c
34:
35: VPATH += $(S)
36: HEADER += $(S)
37:
38: # additional source files (cpu-dependent)
39: VPATH += ../../../sysdepend/cpu/$(MACHINE)
40: HEADER += ../../../sysdepend/cpu/$(MACHINE)
41:
42: # additional source files (device-dependent)
43: VPATH += ../../../sysdepend/device/$(TETYPE)_$(MACHINE)
44: HEADER += ../../../sysdepend/device/$(TETYPE)_$(MACHINE)
45:
46: OBJ = $(addsuffix .o, $(basename $(SRC)))
47:
48: # compiler options
49: CFLAGS += $(CFLAGS_WARNING)
50:
51: CPPFLAGS += -DTKERNEL_CHECK_CONST
52:
53: # ----------------------------------------------------------------------------
54:
55: .PHONY: all clean
56:
57: ALL = $(TARGET)
58:
59: all: $(ALL)
60:
61: $(TARGET): $(OBJ)
62: $(LINK_R.o) $^ $(OUTPUT_OPTION)
63:
64: clean:
65: $(RM) $(OBJ) $(ALL) $(DEPS)
66:
67: # generate dependencies
68: $(DEPS): ; touch $(DEPS)
69: -include $(DEPS)