forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
275 B
18 lines
275 B
3 years ago
|
CC = $(CROSS_COMPILE)gcc
|
||
|
CFLAGS = -g -Wall -O2 -D_FORTIFY_SOURCE=2
|
||
|
SRCS=$(wildcard *.c)
|
||
|
OBJS=$(SRCS:.c=.o)
|
||
|
|
||
|
all: resctrl_tests
|
||
|
|
||
|
$(OBJS): $(SRCS)
|
||
|
$(CC) $(CFLAGS) -c $(SRCS)
|
||
|
|
||
|
resctrl_tests: $(OBJS)
|
||
|
$(CC) $(CFLAGS) -o $@ $^
|
||
|
|
||
|
.PHONY: clean
|
||
|
|
||
|
clean:
|
||
|
$(RM) $(OBJS) resctrl_tests
|