micro-utils/Makefile

13 lines
247 B
Makefile
Raw Normal View History

2023-10-13 15:34:16 +03:00
C_SOURCES:=$(wildcard coreutils/*.c)
C_TARGETS:=$(patsubst coreutils/%.c,bin/%,$(C_SOURCES))
TARGETS:=$(C_TARGETS)
2023-10-03 23:08:02 +03:00
2023-10-17 13:50:40 +03:00
CFLAGS:=-s -Os -flto -pedantic -Wall -Wextra
2023-10-03 23:08:02 +03:00
all: bin $(TARGETS)
2023-10-13 15:34:16 +03:00
bin/%: coreutils/%.c
2023-10-03 23:08:02 +03:00
$(CC) $(CFLAGS) -o $@ $<
clean:
rm bin/*