fcds-lab-2015/c_sequential/haar/Makefile

28 lines
419 B
Makefile
Raw Normal View History

2015-04-25 13:31:21 +00:00
CC = gcc
FLAGS = -O3 -Wall -Wno-unused-result
SRC = haar.c
EXEC = bin/haar
GEN = bin/input_generator
all: make_dirs $(EXEC) $(GEN)
clean:
rm -f -r bin
rm -f -r input
make_dirs:
mkdir -p bin
mkdir -p input
$(EXEC): $(SRC)
$(CC) $(FLAGS) $^ -o $@
$(GEN): input_generator.c
$(CC) $(FLAGS) $^ -o $@
run:
./$(GEN) input/medium.in
./$(EXEC) input/medium.in input/medium.out