skomb/Makefile

17 lines
292 B
Makefile

CC = gcc
CFLAGS = -Wall -Wpedantic -Wextra
SRC = src
BINDIR = bin
BIN = skomb
all: $(BIN)
$(BIN):
$(CC) $(CFLAGS) -O2 -DNDEBUG -Funroll-loops -march=native -s $(SRC)/$(BIN).c -o $(BINDIR)/$@
debug:
$(CC) $(CFLAGS) -O0 -g $(SRC)/$(BIN).c -o $(BINDIR)/$(BIN)
clean:
$(RM) -r $(BINDIR)/*