libunwind: update to 1.8.1
[openadk.git] / package / simpleinit / Makefile
blob4de28ba48dc50d68649adc75bbe6075d52847ce2
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= simpleinit
7 PKG_VERSION:= 1.0
8 PKG_RELEASE:= 1
9 PKG_DESCR:= very simple init
10 PKG_SECTION:= base/init
12 NO_DISTFILES:= 1
14 include $(ADK_TOPDIR)/mk/package.mk
16 $(eval $(call PKG_template,SIMPLEINIT,simpleinit,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
18 CONFIG_STYLE:= manual
19 BUILD_STYLE:= manual
20 INSTALL_STYLE:= manual
22 TARGET_CPPFLAGS+= -DCONFIG_USER_INIT_CONSOLE_SH
24 do-build:
25 PATH='$(HOST_PATH)' \
26 $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
27 -o $(WRKBUILD)/simpleinit $(WRKBUILD)/simpleinit.c
29 do-install:
30 $(INSTALL_DIR) $(IDIR_SIMPLEINIT)/etc
31 $(CP) ./files/rc $(IDIR_SIMPLEINIT)/etc
32 $(CP) ./files/inittab $(IDIR_SIMPLEINIT)/etc
33 $(INSTALL_DIR) $(IDIR_SIMPLEINIT)/sbin
34 $(INSTALL_BIN) $(WRKBUILD)/simpleinit $(IDIR_SIMPLEINIT)/sbin/init
36 include $(ADK_TOPDIR)/mk/pkg-bottom.mk