xref: /linux/tools/testing/selftests/resctrl/Makefile (revision ecdbb911f22d6cc5d422571dedf048b889d71417)
1591a6e85SSai Praneeth PrakhyaCC = $(CROSS_COMPILE)gcc
2591a6e85SSai Praneeth PrakhyaCFLAGS = -g -Wall
3591a6e85SSai Praneeth PrakhyaSRCS=$(wildcard *.c)
4591a6e85SSai Praneeth PrakhyaOBJS=$(SRCS:.c=.o)
5591a6e85SSai Praneeth Prakhya
6*ecdbb911SFenghua Yuall: resctrl_tests
7*ecdbb911SFenghua Yu
8591a6e85SSai Praneeth Prakhya$(OBJS): $(SRCS)
9591a6e85SSai Praneeth Prakhya	$(CC) $(CFLAGS) -c $(SRCS)
10591a6e85SSai Praneeth Prakhya
11*ecdbb911SFenghua Yuresctrl_tests: $(OBJS)
12*ecdbb911SFenghua Yu	$(CC) $(CFLAGS) -o $@ $^
13*ecdbb911SFenghua Yu
14591a6e85SSai Praneeth Prakhya.PHONY: clean
15591a6e85SSai Praneeth Prakhya
16591a6e85SSai Praneeth Prakhyaclean:
17*ecdbb911SFenghua Yu	$(RM) $(OBJS) resctrl_tests
18