diff options
author | 2022-11-30 22:52:09 +0100 | |
---|---|---|
committer | 2022-11-30 22:52:09 +0100 | |
commit | 0cf093bcf8e3de9b8fb37dfa215f595875fa031a (patch) | |
tree | 714c175afdb0be42d80d112d35e394c2fe8bcf30 /test | |
parent | c70ac3e80e0110731a445ac9ac7f615ef85ab488 (diff) | |
download | utils-0cf093bcf8e3de9b8fb37dfa215f595875fa031a.tar.gz utils-0cf093bcf8e3de9b8fb37dfa215f595875fa031a.zip |
Edit test/Makefile
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 12 | ||||
-rw-r--r-- | test/main.c | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/test/Makefile b/test/Makefile index 2f9aa23..22bddb9 100644 --- a/test/Makefile +++ b/test/Makefile @@ -25,18 +25,16 @@ WARNINGS = -Wall -Werror CFLAGS = ${WARNINGS} -ansi -pedantic LFLAGS = -all: init ${OBJ} test1 +all: ../liblist.so ${OBJ} test1 -init: +../liblist.so: @make -C .. - cp ../src/list.h ./ - cp ../liblist.so ./ .c.o: - ${CC} -c ${CFLAGS} $< -o $@ + ${CC} -I../src/ -c ${CFLAGS} $< -o $@ test1: - ${CC} -shared -o $@ ${OBJ} + ${CC} -o $@ -L../ -Wl,-rpath=../ ${OBJ} -llist clean: - rm -f ${OBJ} test1 list.h liblist.so + rm -f ${OBJ} test1 diff --git a/test/main.c b/test/main.c index e1c0c6c..aa4f721 100644 --- a/test/main.c +++ b/test/main.c @@ -20,7 +20,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include "list.h" +#include <list.h> int main(int argc, char** argv) { |