1
|
1 |
all: options ${OUT} |
|
2 |
|
|
3 |
options: |
|
4 |
@echo ${OUT} build options: |
|
5 |
@echo "CFLAGS = ${STATUS_CFLAGS}" |
|
6 |
@echo "LDFLAGS = ${STATUS_LDFLAGS}" |
|
7 |
@echo "CC = ${CC}" |
|
8 |
|
|
9 |
|
|
10 |
${OBJ}: ${CONFIG} config.mk |
|
11 |
|
|
12 |
%.o: %.c |
|
13 |
@echo CC $< |
|
14 |
@${CC} -c ${STATUS_CFLAGS} $< |
|
15 |
|
|
16 |
${OUT}: ${OBJ} |
|
17 |
@echo CC -o $@ |
|
18 |
@${CC} -o $@ ${OBJ} ${STATUS_LDFLAGS} |
|
19 |
|
|
20 |
${CONFIG}: |
|
21 |
@echo creating $@ from default |
|
22 |
@cp config.def.h config.h |
|
23 |
|
|
24 |
clean: |
|
25 |
@echo cleaning ${OUT} |
3
|
26 |
@rm -f ${OUT} ${OBJ} |
1
|
27 |
|
|
28 |
.PHONY: all clean |