Makefile.standalone 691 B

1234567891011121314151617181920212223242526
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. VERSION := $(shell cat VERSION)
  3. CFLAGS += $$($(PKG_CONFIG) --cflags libtracefs)
  4. EXTLIBS += $$($(PKG_CONFIG) --libs libtracefs)
  5. rtla:
  6. include Makefile.rtla
  7. SRC := $(wildcard src/*.c)
  8. HDR := $(wildcard src/*.h)
  9. OBJ := $(SRC:.c=.o)
  10. DOCSRC := Documentation/
  11. rtla: $(OBJ)
  12. $(CC) -o rtla $(LDFLAGS) $(OBJ) $(LIBS) $(EXTLIBS)
  13. $(info This is a deprecated method to compile RTLA, please compile from Linux kernel source)
  14. .PHONY: clean tarball
  15. clean: doc_clean
  16. @test ! -f rtla || rm rtla
  17. @test ! -f rtla-static || rm rtla-static
  18. @test ! -f src/rtla.o || rm src/rtla.o
  19. @test ! -f $(TARBALL) || rm -f $(TARBALL)
  20. @rm -rf *~ $(OBJ) *.tar.$(CEXT)