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 T-Engine Forum at 2012/11/07.
11: # Modified by T-Engine Forum at 2013/02/20.
12: # Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
13: #
14: # ----------------------------------------------------------------------
15: #
16:
17: # T-Monitor : hwdepend (em1d)
18:
19: MACHINE = em1d
20: TETYPE = tef
21:
22: SRC_SYSDEP = eitproc.c cpuctrl.c misc.c \
23: eitent.S reset.S system.c waitusec.c config.c \
24: cpuctrl2.S memattr.S
25:
26: # ----------------------------------------------------------------------------
27:
28: DEPS = Dependencies
29: DEPENDENCIES_OUTPUT := $(DEPS)
30:
31: include $(BD)/etc/makerules
32:
33: TMONITOR_INSTALLDIR = $(BD)/monitor/bin/$(TETYPE)_$(MACHINE)
34:
35: HEADER = $(BD)/include $(BD)/monitor/include
36:
37: # ----------------------------------------------------------------------------
38:
39: TARGET = hwdepend
40:
41: S = ../src
42:
43: VPATH = $(S)
44: HEADER += $(S)
45:
46: SRC = startup.c hwinfo.c sio.c diskio.c
47: SRC += $(SRC_SYSDEP)
48:
49: OBJ = $(addsuffix .o, $(basename $(SRC)))
50:
51: CFLAGS += $(CFLAGS_WARNING)
52:
53: # ----------------------------------------------------------------------------
54:
55: .PHONY: all clean install
56:
57: ALL = $(TARGET).o
58:
59: all: $(ALL)
60:
61: $(TARGET).o: $(OBJ)
62: $(LINK_R.o) $^ $(OUTPUT_OPTION)
63:
64: clean:
65: $(RM) $(OBJ) $(ALL) $(DEPS)
66:
67: install: $(addprefix $(TMONITOR_INSTALLDIR)/, $(ALL))
68:
69: $(TMONITOR_INSTALLDIR)/%: %
70: $(BD)/etc/backup_copy -t -d !OLD $< $(TMONITOR_INSTALLDIR)
71:
72: ifdef DEPENDENCIES_OUTPUT
73: $(DEPS): ; touch $(DEPS)
74: else
75: $(DEPS): $(SRC) ; $(MAKEDEPS) $@ $?
76: endif
77: -include $(DEPS)