From 6ea9939e0610a809f6f47d13ec68df00d1ca0afc Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Fri, 16 Oct 2020 16:55:14 -0400 Subject: Move the DIS benchmarks up a directory and update hardcoded paths Note that this repo does not attempt to keep a copy of the original DIS benchmark distributions. UNC real-time has another repo for that. --- dis/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 dis/Makefile (limited to 'dis/Makefile') diff --git a/dis/Makefile b/dis/Makefile new file mode 100755 index 0000000..7f3da39 --- /dev/null +++ b/dis/Makefile @@ -0,0 +1,38 @@ +LIBLITMUS ?= /media/speedy/litmus/liblitmus +CC ?= gcc +override CFLAGS += -pthread -O2 -ggdb3 -I../baseline/source +LDFLAGS = -lrt -lm +COMMON = ../baseline/source/extra.h + +# Handle cases where we're also profiling with the MMDC on the i.MX6Q +ifneq ($(shell grep "define MMDC 1" ../baseline/source/extra.h),) + COMMON += /media/speedy/litmus/tools/mmdc/mmdc.c +endif + +# Include all the LITMUS^RT headers if we're using it +ifneq ($(shell grep "define LITMUS 1" ../baseline/source/extra.h),) + CFLAGS += -I${LIBLITMUS}/include -I${LIBLITMUS}/arch/arm/include + LDFLAGS += -L${LIBLITMUS} -llitmus +endif + + +all: field matrix neighborhood pointer transitive update random_walk + +.PHONY: clean +clean: + rm field matrix neighborhood pointer transitive update random_walk + +field: ${COMMON} ./Field/field.c + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) +matrix: ${COMMON} ./Matrix/ver2/matrix.c + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) +neighborhood: ${COMMON} ./Neighborhood/neighborhood.c + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) +pointer: ${COMMON} ./Pointer/pointer.c + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) +transitive: ${COMMON} ./Transitive/transitive.c + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) +update: ${COMMON} ./Update/update.c + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) +random_walk: ${COMMON} random_walk.c + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -- cgit v1.2.2