2022-07-29 14:02:42 +08:00
|
|
|
CC ?= gcc
|
|
|
|
CXX ?= g++
|
|
|
|
T := $(CURDIR)
|
|
|
|
OUT_DIR ?= $(shell mkdir -p $(T)i/../build;cd $(T)/../build;pwd)
|
2022-06-28 01:47:39 +08:00
|
|
|
|
|
|
|
CFLAGS = -Wall -Wextra -Wabi=11 -pedantic
|
|
|
|
|
|
|
|
LDLIBS = -lrt -pthread
|
|
|
|
|
2022-07-29 14:02:42 +08:00
|
|
|
all: userApp histapp
|
|
|
|
|
|
|
|
userApp:
|
|
|
|
$(CXX) $(CFLAGS) -o $(OUT_DIR)/userApp userApp.cpp ivshmemlib.c $(LDLIBS)
|
|
|
|
histapp:
|
|
|
|
cp $(T)/histapp.py $(OUT_DIR)
|
2022-06-28 01:47:39 +08:00
|
|
|
|
|
|
|
clean:
|
2022-07-29 14:02:42 +08:00
|
|
|
rm $(OUT_DIR)/userApp
|
|
|
|
rm $(OUT_DIR)/histapp.py
|