summaryrefslogtreecommitdiff
path: root/target-rules.mk
blob: dc5a047a80eb94013b15296a2a767ebdb03b5466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
%.o: %.c
	$(E) [TC]     Compiling $<
	$(Q)$(TARGET_CC) $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_CPPFLAGS) -c -o $@ $<

%.o: %.s
	$(E) [TS]     Compiling $<
	$(Q)$(TARGET_AS) $(addprefix -I, $(TARGET_INCLUDES)) $(TARGET_CPPFLAGS) -c -o $@ $<

TARGET_OBJS = $(addsuffix .o, $(basename $(TARGET_SRCS)))

$(TARGET_LIB): $(TARGET_OBJS)
	$(E) [TLIB]   Creating $@
	$(Q)$(TARGET_AR) rcs $@ $^

.PHONY: clean-generic

clean-generic:
	rm -f $(TARGET_LIB) $(TARGET_OBJS)