brintos

brintos / linux-shallow public Read only

0
0
Text · 691 B · 86d07cb Raw
27 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2 3VERSION		:= $(shell cat VERSION)4CFLAGS		+= $$($(PKG_CONFIG) --cflags libtracefs)5EXTLIBS		+= $$($(PKG_CONFIG) --libs libtracefs)6 7rtla:8 9include Makefile.rtla10 11SRC		:= $(wildcard src/*.c)12HDR		:= $(wildcard src/*.h)13OBJ		:= $(SRC:.c=.o)14DOCSRC		:= Documentation/15 16rtla: $(OBJ)17	$(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS) $(EXTLIBS)18	$(info This is a deprecated method to compile RTLA, please compile from Linux kernel source)19 20.PHONY: clean tarball21clean: doc_clean22	@test ! -f rtla || rm rtla23	@test ! -f rtla-static || rm rtla-static24	@test ! -f src/rtla.o || rm src/rtla.o25	@test ! -f $(TARBALL) || rm -f $(TARBALL)26	@rm -rf *~ $(OBJ) *.tar.$(CEXT)27