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