source: freewrt/toolchain/libnotimpl/Makefile@ 9bd66d7

freewrt_1_0 freewrt_2_0
Last change on this file since 9bd66d7 was 9bd66d7, checked in by Thorsten Glaser <tg@…>, 19 years ago

uclibc already comes with strlcpy and strlcat, I'm amazed

git-svn-id: svn://www.freewrt.org/trunk/freewrt@377 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 844 bytes
Line 
1include $(TOPDIR)/rules.mk
2include ../rules.mk
3
4LIBNOTIMPL_DIR:=$(TOOLCHAIN_BUILD_DIR)/libnotimpl
5
6LIBNOTIMPL_SRCS+=./files/math.c
7LIBNOTIMPL_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
24source:
25prepare: $(LIBNOTIMPL_DIR)/.prepared
26compile: $(LIBNOTIMPL_DIR)/libnotimpl.a
27install: $(STAGING_DIR)/usr/lib/libnotimpl.a
28clean:
29 rm -rf \
30 $(STAGING_DIR)/usr/lib/libnotimpl.a \
31 $(LIBNOTIMPL_DIR) \
Note: See TracBrowser for help on using the repository browser.