1CC = $(CROSS_COMPILE)gcc
2CFLAGS = -g -Wall -O2 -D_FORTIFY_SOURCE=2
3SRCS=$(wildcard *.c)
4OBJS=$(SRCS:.c=.o)
5
6all: resctrl_tests
7
8$(OBJS): $(SRCS)
9	$(CC) $(CFLAGS) -c $(SRCS)
10
11resctrl_tests: $(OBJS)
12	$(CC) $(CFLAGS) -o $@ $^
13
14.PHONY: clean
15
16clean:
17	$(RM) $(OBJS) resctrl_tests
18