hls-performance-thesis/code/Makefile
2021-07-03 17:59:32 +02:00

31 lines
565 B
Makefile

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)