Iru Cai | 5fd00ce | 2017-03-26 12:05:32 +0800 | [diff] [blame] | 1 | obj = kbc1126_ec_dump kbc1126_ec_insert |
2 | HOSTCC := $(if $(shell type gcc 2>/dev/null),gcc,cc) | ||||
3 | |||||
4 | all: $(obj) | ||||
5 | |||||
6 | %: %.c | ||||
7 | $(HOSTCC) -Wall -o $@ $< | ||||
8 | |||||
9 | clean: | ||||
10 | rm -f kbc1126_ec_dump kbc1126_ec_insert | ||||
11 | |||||
12 | .PHONY: all clean |