2022-06-28 01:47:39 +08:00
|
|
|
CC = gcc
|
2022-07-29 14:02:42 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
all: rtApp.c
|
2022-07-29 14:02:42 +08:00
|
|
|
$(CXX) $(CFLAGS) -o $(OUT_DIR)/rtApp rtApp.c ivshmemlib.c
|
2022-06-28 01:47:39 +08:00
|
|
|
|
|
|
|
clean:
|
2022-07-29 14:02:42 +08:00
|
|
|
rm $(OUT_DIR)/rtApp
|