summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 5a81cb1a69ddf62681acc4294b915f937b2cbf11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 $@