mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-06 14:12:10 +00:00
Add the Makefile in the SampleApplication root directory. User don't need to separate build the userapp and rtapp, just need make once at the SampleApplication root directory. Tracked-On #7820 Signed-off-by: Liu Long <long.liu@linux.intel.com>
20 lines
372 B
Makefile
20 lines
372 B
Makefile
CC ?= gcc
|
|
CXX ?= g++
|
|
T := $(CURDIR)
|
|
OUT_DIR ?= $(shell mkdir -p $(T)i/../build;cd $(T)/../build;pwd)
|
|
|
|
CFLAGS = -Wall -Wextra -Wabi=11 -pedantic
|
|
|
|
LDLIBS = -lrt -pthread
|
|
|
|
all: userApp histapp
|
|
|
|
userApp:
|
|
$(CXX) $(CFLAGS) -o $(OUT_DIR)/userApp userApp.cpp ivshmemlib.c $(LDLIBS)
|
|
histapp:
|
|
cp $(T)/histapp.py $(OUT_DIR)
|
|
|
|
clean:
|
|
rm $(OUT_DIR)/userApp
|
|
rm $(OUT_DIR)/histapp.py
|