1 # SPDX-License-Identifier: GPL-2.0-only 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 3 VERSION := $(shell cat VERSION) 3 VERSION := $(shell cat VERSION) 4 CFLAGS += $$($(PKG_CONFIG) --cflags l 4 CFLAGS += $$($(PKG_CONFIG) --cflags libtracefs) 5 EXTLIBS += $$($(PKG_CONFIG) --libs lib 5 EXTLIBS += $$($(PKG_CONFIG) --libs libtracefs) 6 6 7 rtla: 7 rtla: 8 8 9 include Makefile.rtla 9 include Makefile.rtla 10 10 11 SRC := $(wildcard src/*.c) 11 SRC := $(wildcard src/*.c) 12 HDR := $(wildcard src/*.h) 12 HDR := $(wildcard src/*.h) 13 OBJ := $(SRC:.c=.o) 13 OBJ := $(SRC:.c=.o) 14 DOCSRC := Documentation/ 14 DOCSRC := Documentation/ 15 15 16 rtla: $(OBJ) 16 rtla: $(OBJ) 17 $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS 17 $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS) $(EXTLIBS) 18 $(info This is a deprecated method to 18 $(info This is a deprecated method to compile RTLA, please compile from Linux kernel source) 19 19 20 .PHONY: clean tarball 20 .PHONY: clean tarball 21 clean: doc_clean 21 clean: doc_clean 22 @test ! -f rtla || rm rtla 22 @test ! -f rtla || rm rtla 23 @test ! -f rtla-static || rm rtla-stat 23 @test ! -f rtla-static || rm rtla-static 24 @test ! -f src/rtla.o || rm src/rtla.o 24 @test ! -f src/rtla.o || rm src/rtla.o 25 @test ! -f $(TARBALL) || rm -f $(TARBA 25 @test ! -f $(TARBALL) || rm -f $(TARBALL) 26 @rm -rf *~ $(OBJ) *.tar.$(CEXT) 26 @rm -rf *~ $(OBJ) *.tar.$(CEXT)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.