动态内存分配模块完成,并添加了测试程序
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
.PHONY: all test clear
|
||||
|
||||
all: test
|
||||
|
||||
test:
|
||||
mkdir -p .cache/shared .cache/test
|
||||
gcc -shared -fPIC -o .cache/shared/libdma.so ./src/dynamic_memory_allocation/main.c -I./
|
||||
gcc -o .cache/test/test_dma ./test/dynamic_memory_allocation.c -L./.cache/shared/ -ldma -I./ -Wl,-rpath='./.cache/shared'
|
||||
./.cache/test/test_dma
|
||||
clear:
|
||||
rm -rf .cache
|
||||
Reference in New Issue
Block a user