14 lines
151 B
Makefile
14 lines
151 B
Makefile
|
SRCS = $(wildcard *.c)
|
||
|
|
||
|
PROGS = $(patsubst %.c,%,$(SRCS))
|
||
|
|
||
|
all: $(PROGS)
|
||
|
|
||
|
%: %.c
|
||
|
$(CC) $(CFLAGS) -o $@ $<
|
||
|
|
||
|
clean:
|
||
|
rm -f $(PROGS)
|
||
|
|
||
|
.PHONY: all clean
|