freewrt_1_0
freewrt_2_0
| Line | |
|---|
| 1 | include $(TOPDIR)/rules.mk
|
|---|
| 2 | include ../rules.mk
|
|---|
| 3 |
|
|---|
| 4 | LIBNOTIMPL_DIR:=$(TOOLCHAIN_BUILD_DIR)/libnotimpl
|
|---|
| 5 |
|
|---|
| 6 | LIBNOTIMPL_SRCS+=./files/math.c
|
|---|
| 7 | LIBNOTIMPL_OBJS:=$(patsubst ./files/%.c,$(LIBNOTIMPL_DIR)/%.o,$(LIBNOTIMPL_SRCS))
|
|---|
| 8 |
|
|---|
| 9 | $(LIBNOTIMPL_DIR)/.prepared:
|
|---|
| 10 | mkdir -p $(LIBNOTIMPL_DIR)
|
|---|
| 11 | touch $@
|
|---|
| 12 |
|
|---|
| 13 | $(LIBNOTIMPL_OBJS): $(LIBNOTIMPL_DIR)/%.o : ./files/%.c
|
|---|
| 14 | $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@
|
|---|
| 15 |
|
|---|
| 16 | $(LIBNOTIMPL_DIR)/libnotimpl.a: $(LIBNOTIMPL_OBJS)
|
|---|
| 17 | $(TARGET_CROSS)ar rc $(LIBNOTIMPL_DIR)/libnotimpl.a $(LIBNOTIMPL_OBJS)
|
|---|
| 18 |
|
|---|
| 19 | $(STAGING_DIR)/usr/lib/libnotimpl.a: $(LIBNOTIMPL_DIR)/libnotimpl.a
|
|---|
| 20 | mkdir -p $(STAGING_DIR)/usr/lib
|
|---|
| 21 | $(CP) $< $@
|
|---|
| 22 | touch -c $@
|
|---|
| 23 |
|
|---|
| 24 | source:
|
|---|
| 25 | prepare: $(LIBNOTIMPL_DIR)/.prepared
|
|---|
| 26 | compile: $(LIBNOTIMPL_DIR)/libnotimpl.a
|
|---|
| 27 | install: $(STAGING_DIR)/usr/lib/libnotimpl.a
|
|---|
| 28 | clean:
|
|---|
| 29 | rm -rf \
|
|---|
| 30 | $(STAGING_DIR)/usr/lib/libnotimpl.a \
|
|---|
| 31 | $(LIBNOTIMPL_DIR) \
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.