diff options
author | 2022-11-30 22:52:09 +0100 | |
---|---|---|
committer | 2022-11-30 22:52:09 +0100 | |
commit | 0cf093bcf8e3de9b8fb37dfa215f595875fa031a (patch) | |
tree | 714c175afdb0be42d80d112d35e394c2fe8bcf30 /test/Makefile | |
parent | c70ac3e80e0110731a445ac9ac7f615ef85ab488 (diff) | |
download | utils-0cf093bcf8e3de9b8fb37dfa215f595875fa031a.tar.gz utils-0cf093bcf8e3de9b8fb37dfa215f595875fa031a.zip |
Edit test/Makefile
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 12 |
1 files changed, 5 insertions, 7 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 |