source: freewrt/toolchain/libnotimpl/Makefile@ 4025ecb

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

Add strlcpy(3) and strlcat(3) from BSD libc here

ok wbx@

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

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