This commit is contained in:
Pim Kunis 2021-07-03 17:59:32 +02:00
commit 1b3e0d6d57
602 changed files with 4433 additions and 0 deletions

31
code/Makefile Normal file
View file

@ -0,0 +1,31 @@
CC=gcc
CPPC=g++
CFLAGS=-I. -Wextra -Wall -g
DEPS = fmindex.h util.h
OBJ = fmindex.o util.o rapl.o
EXES = program repl construct generate_test_data benchmark
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
all: $(EXES)
program: $(OBJ) program.o
$(CC) -o $@ $^ $(CFLAGS)
repl: $(OBJ) repl.o
$(CC) -o $@ $^ $(CFLAGS)
construct: $(OBJ) construct.o
$(CC) -o $@ $^ $(CFLAGS)
generate_test_data: $(OBJ) generate_test_data.o
$(CPPC) -o $@ $^ $(CFLAGS)
benchmark: $(OBJ) benchmark.o
$(CPPC) -o $@ $^ $(CFLAGS)
.PHONY: clean all
clean:
rm -f *.o *~ core $(EXES)