blob: 215629cbc7bc48362b0143270e266e0423acf405 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
BASEDIR=../..
include $(BASEDIR)/config.mk
OBJ = $(patsubst %.c, %.lo, $(wildcard *.c))
all: $(EXTTARGET)
clean:
$(RM) $(EXTTARGET) *.lo
$(EXTTARGET): $(OBJ)
@echo "$(CC) $@"
$(Q)$(CC) $(OBJ) $(EXTLDFLAGS) -o $@
%.lo: %.c
@echo "${CC} $@"
$(Q)$(CC) $(EXTCFLAGS) -fPIC -c -o $@ $<
.PHONY: all clean
|