Makefile 621 B

123456789101112131415161718192021222324
  1. BUILD_COMPONENTS := libopenbw_ui replay_viewer
  2. INSTALL_COMPONENTS := libopenbw_core
  3. COMPONENTS := $(BUILD_COMPONENTS) $(INSTALL_COMPONENTS)
  4. ifneq ($(COMMON_BUILD_DIR),)
  5. export PREFIX = $(COMMON_BUILD_DIR)
  6. export override LDFLAGS += -Wl,-rpath,$(PREFIX)/lib
  7. endif
  8. all: $(BUILD_COMPONENTS)
  9. install: $(COMPONENTS)
  10. uninstall: $(COMPONENTS)
  11. clean: $(BUILD_COMPONENTS)
  12. distclean: $(BUILD_COMPONENTS)
  13. $(BUILD_COMPONENTS):
  14. $(MAKE) -C $@ $(MAKECMDGOALS) --no-print-directory
  15. $(INSTALL_COMPONENTS):
  16. $(MAKE) -C $@ $(MAKECMDGOALS) --no-print-directory
  17. .PHONY: all install uninstall clean distclean $(COMPONENTS)
  18. .NOTPARALLEL: