micro-utils/Makefile
Your Name 07742fcdb9 Yes
2023-10-17 13:50:40 +03:00

13 lines
247 B
Makefile

C_SOURCES:=$(wildcard coreutils/*.c)
C_TARGETS:=$(patsubst coreutils/%.c,bin/%,$(C_SOURCES))
TARGETS:=$(C_TARGETS)
CFLAGS:=-s -Os -flto -pedantic -Wall -Wextra
all: bin $(TARGETS)
bin/%: coreutils/%.c
$(CC) $(CFLAGS) -o $@ $<
clean:
rm bin/*