19 lines
626 B
Diff
19 lines
626 B
Diff
--- harness/Makefile 2019-06-28 02:50:39.028675707 -0400
|
|
+++ harness/Makefile.new 2019-06-28 02:55:12.037687654 -0400
|
|
@@ -9,10 +9,14 @@
|
|
CFLAGS+=-Wall -I../src -g -O2 -DPAGE_SIZE=$(shell getconf PAGESIZE)
|
|
#-lpthread -lrt
|
|
|
|
+# Change this on the build line to run tests against the installed libraries:
|
|
+# make LIBAIO=-laio partcheck
|
|
+LIBAIO?=../src/libaio.a
|
|
+
|
|
all: $(PROGS)
|
|
|
|
$(PROGS): %.p: %.t $(HARNESS_SRCS)
|
|
- $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c ../src/libaio.a -lpthread
|
|
+ $(CC) $(CFLAGS) -DTEST_NAME=\"$<\" -o $@ main.c $(LIBAIO) -lpthread
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o runtests.out rofile wofile rwfile
|