Daisuke Nojiri | a5ae62e | 2015-11-03 15:04:59 -0800 | [diff] [blame] | 1 | PROGRAM = archive |
Daisuke Nojiri | a1bb091 | 2015-11-17 13:25:39 -0800 | [diff] [blame] | 2 | HOSTCC ?= gcc |
Daisuke Nojiri | a5ae62e | 2015-11-03 15:04:59 -0800 | [diff] [blame] | 3 | |
4 | SRCS = $(PROGRAM).c | ||||
5 | |||||
6 | all: $(PROGRAM) | ||||
7 | |||||
8 | $(PROGRAM): $(SRCS) | ||||
Daisuke Nojiri | a1bb091 | 2015-11-17 13:25:39 -0800 | [diff] [blame] | 9 | $(HOSTCC) -o $@ $^ |
Daisuke Nojiri | a5ae62e | 2015-11-03 15:04:59 -0800 | [diff] [blame] | 10 | |
11 | clean: | ||||
12 | rm -f $(PROGRAM) *.o | ||||
13 | |||||
14 | .PHONY: all clean |