11 lines
335 B
Makefile
11 lines
335 B
Makefile
.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
|