blob: 5a81cb1a69ddf62681acc4294b915f937b2cbf11 (
plain) (
tree)
|
|
CFILES := $(wildcard *.c)
CFILES += $(wildcard test/*.c)
OFILES := $(patsubst %.c,%.o,$(CFILES))
OUT := malloc-test
CFLAGS := -Wall -Wextra -Wpedantic
all: $(OUT)
./$(OUT)
clean:
rm $(OFILES)
$(OUT): ${OFILES} $(JDTLIB)
$(CC) $(OFILES) -o $(OUT)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
|