Commit cd313cb8 authored by Anas Nashif's avatar Anas Nashif Committed by Anas Nashif
Browse files

sampels: remove obsoleted static_lib sample

parent fb91ad6b
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

all qemu flash pristine clean:
	$(MAKE) -C hello_world $@
+0 −30
Original line number Diff line number Diff line
Linking with a static library
#############################

This sample shows how to link a static library to a Zephyr application.
A sample library is also included.

Read mylib/Makefile to discover how to use the Zephyr's toolchain
to build a static library.

If the library's source code is available, perhaps it could be more
easier to integrate that source code to your application than creating
the static library.


Build instructions
==================

1. It is assumed that ZEPHYR_GCC_VARIANT and ZEPHYR_SDK_INSTALL_DIR
variables are already set. See:

https://www.zephyrproject.org/doc/getting_started/getting_started.html

2. source $ZEPHYR/zephyr-env.sh

   Where $ZEPHYR points to the directory that contains the zephyr
   repository.

3. make

4. make run
+0 −3
Original line number Diff line number Diff line
subdir-ccflags-y += -I$(SOURCE_DIR)/../mylib/include

obj-y += src/
+0 −21
Original line number Diff line number Diff line
#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

BOARD ?= qemu_x86
CONF_FILE = prj.conf

export SOURCE_DIR = $(CURDIR)
export LDFLAGS_zephyr += -L$(O)/mylib/lib
export ALL_LIBS += mylib

include ${ZEPHYR_BASE}/Makefile.inc

all qemu flash zephyr : all-mylib
clean pristine mrproper : clean-mylib
all-mylib: outputexports

all-mylib clean-mylib:
	$(MAKE) -C ../mylib O=$(O) $(@:-mylib=)
+0 −1
Original line number Diff line number Diff line
CONFIG_STDOUT_CONSOLE=y
Loading