2024-04-24 08:24:22 +00:00
|
|
|
CC = cc
|
2024-04-24 08:19:37 +00:00
|
|
|
CFLAGS = -O4 -Ofast -march=native -flto -fomit-frame-pointer -finline-functions -funroll-loops -std=c2x
|
|
|
|
DIR = cgi
|
|
|
|
|
|
|
|
SOURCES = $(wildcard $(DIR)/*.c)
|
|
|
|
TARGETS = $(patsubst $(DIR)/%.c,%,$(SOURCES))
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
%: $(DIR)/%.c
|
|
|
|
$(CC) $(CFLAGS) -o $(DIR)/$@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
find $(DIR)/ -type f ! -name '*.c' -exec rm -f {} \;
|