Skip to content
Snippets Groups Projects
Commit 2e8410d9 authored by Alex Apostolescu's avatar Alex Apostolescu Committed by Razvan Deaconescu
Browse files

asg/mini-libc: Use absolute path for SRC_PATH


Use the absolute path of SRC_PATH in tests/Makefile rather than
prepending ../ when changing directory.

Signed-off-by: default avatarAlex Apostolescu <alexx.apostolescu@gmail.com>
parent 635988d0
No related branches found
No related tags found
No related merge requests found
Pipeline #25267 passed
SRC_PATH ?= ../src
CPPFLAGS = -nostdinc -I. -I$(SRC_PATH)/include
FULL_SRC_PATH = $(realpath $(SRC_PATH))
CPPFLAGS = -nostdinc -I. -I$(FULL_SRC_PATH)/include
CFLAGS = -Wall -Wextra -fno-PIC -fno-stack-protector -fno-builtin
# Remove the line below to disable debugging support.
CFLAGS += -g -O0
LDFLAGS = -nostdlib -no-pie -L$(SRC_PATH)
LDFLAGS = -nostdlib -no-pie -L$(FULL_SRC_PATH)
LDLIBS = -lc
SRCS = $(wildcard test_*.c)
......@@ -23,21 +24,21 @@ $(OBJS): %.o:%.c graded_test.h
graded_test.o: graded_test.c graded_test.h
io:
make -C io SRC_PATH=../$(SRC_PATH)
make -C io SRC_PATH=$(FULL_SRC_PATH)
memory:
make -C memory SRC_PATH=../$(SRC_PATH)
make -C memory SRC_PATH=$(FULL_SRC_PATH)
process:
make -C process SRC_PATH=../$(SRC_PATH)
make -C process SRC_PATH=$(FULL_SRC_PATH)
src:
make -C $(SRC_PATH)
make -C $(FULL_SRC_PATH)
check:
make -C $(SRC_PATH) clean
make -C $(FULL_SRC_PATH) clean
make clean
make -i SRC_PATH=$(SRC_PATH)
make -i SRC_PATH=$(FULL_SRC_PATH)
./run_all_tests.sh
lint:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment