Makefile 143 B

123456789101112
  1. SRCS=$(wildcard *.c)
  2. TARGETS=$(SRCS:.c=)
  3. CFLAGS= -Wall -fshort-wchar
  4. all: $(TARGETS)
  5. %: %.c
  6. $(CC) $(CFLAGS) $< -o $@
  7. clean:
  8. rm $(TARGETS)