# Makefile para compilar el programa crc # To compile the program, just type make in the sample directory. CC=gcc FLAGS=-g -Wall -Wextra -Wshadow -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter # FLAGS=-std=c99 OPT_FLAGS=-O3 -march=native # OPT_FLAGS=-O3 -msse4 REPORT_FLAGS=-fopt-info-vec-optimized # REPORT_FLAGS=-fopt-info-vec-all -fopt-info-loop-optimized all: crc # $^: names of all the prerequisites # http://www.gnu.org/software/make/manual/make.html#Automatic-Variables crc: crc.c | $(REPDIR) $(ASMDIR) $(CC) $(FLAGS) $(OPT_FLAGS) $(REPORT_FLAGS) $^ -o $@ -lm clean: rm -rf *.o crc