2023-01-04 17:14:28 -03:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -Wall -Wpedantic -Wextra
|
|
|
|
SRC = src
|
|
|
|
BINDIR = bin
|
|
|
|
BIN = skomb
|
|
|
|
|
|
|
|
all: $(BIN)
|
|
|
|
|
|
|
|
$(BIN):
|
2023-01-09 12:06:23 -03:00
|
|
|
$(CC) $(CFLAGS) -O2 -DNDEBUG -funroll-loops -march=native -s $(SRC)/$(BIN).c -o $(BINDIR)/$@
|
2023-01-04 17:14:28 -03:00
|
|
|
|
|
|
|
debug:
|
|
|
|
$(CC) $(CFLAGS) -O0 -g $(SRC)/$(BIN).c -o $(BINDIR)/$(BIN)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -r $(BINDIR)/*
|