1 # SPDX-License-Identifier: GPL-2.0-only
3 VERSION := $(shell cat VERSION)
4 CFLAGS += $$($(PKG_CONFIG) --cflags libtracefs)
5 EXTLIBS += $$($(PKG_CONFIG) --libs libtracefs)
11 SRC := $(wildcard src/*.c)
12 HDR := $(wildcard src/*.h)
14 DOCSRC := Documentation/
17 $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS) $(EXTLIBS)
18 $(info This is a deprecated method to compile RTLA, please compile from Linux kernel source)
22 @test ! -f rtla || rm rtla
23 @test ! -f rtla-static || rm rtla-static
24 @test ! -f src/rtla.o || rm src/rtla.o
25 @test ! -f $(TARBALL) || rm -f $(TARBALL)
26 @rm -rf *~ $(OBJ) *.tar.$(CEXT)