From b7b26c95d89a9221941487ceea0c5389882c3619 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 29 Nov 2020 16:18:22 +0100 Subject: allow to run makefile from different location with `-C` --- 01_dynamic_linking/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '01_dynamic_linking/Makefile') diff --git a/01_dynamic_linking/Makefile b/01_dynamic_linking/Makefile index 50aa0c3..096a8ca 100644 --- a/01_dynamic_linking/Makefile +++ b/01_dynamic_linking/Makefile @@ -9,7 +9,7 @@ inspect: build build: libgreet.c main.c gcc -o libgreet.so libgreet.c -shared -fPIC - gcc -o main main.c -lgreet -L. -Wl,--rpath=$(PWD) + gcc -o main main.c -lgreet -L. -Wl,--rpath=$(CURDIR) clean: rm -f libgreet.so main -- cgit v1.2.3