wasm-micro-runtime/test-tools/component-test/host-clients/src/makefile
Wenyong Huang 32242988ed
Apply clang-format for more source files (#795)
Apply clang-format for C source files in folder core/app-mgr,
core/app-framework, and test-tools.
And rename folder component_test to component-test, update
zephyr build document.

Signed-off-by: Wenyong Huang <wenyong.huang@intel.com>
2021-10-21 13:58:34 +08:00

45 lines
1.0 KiB
Makefile

#
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
CC = gcc
CFLAGS := -Wall -g
# Add this to make compiler happy
CFLAGS += -DWASM_ENABLE_INTERP=1
host_api_c=../../../../host-agent/host-api-c
attr_container_dir=../../../../wamr/core/app-framework/app-native-shared
coap_dir=../../../../host-agent/coap
shared_dir=../../../../wamr/core/shared
# core
INCLUDE_PATH = -I$(host_api_c)/src -I$(attr_container_dir)/ \
-I$(coap_dir)/er-coap -I$(coap_dir)/er-coap/extension \
-I$(shared_dir)/include \
-I$(shared_dir)/utils \
-I$(shared_dir)/platform/include/ \
-I$(shared_dir)/platform/linux/
LIB := $(host_api_c)/src/libhostapi.a
EXE := ./hostapp
App_C_Files := host_app_sample.c
OBJS := $(App_C_Files:.c=.o)
all: $(EXE)
%.o: %.c
@$(CC) $(CFLAGS) -c $< -o $@ $(INCLUDE_PATH)
$(EXE): $(OBJS)
@rm -f $(EXE)
@$(CC) $(OBJS) -o $(EXE) $(LIB) -lpthread -lrt
@rm -f $(OBJS)
.PHONY: clean
clean:
rm -f $(OBJS) $(EXE)