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