Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.2 KiB

default_target: all
.NOTPARALLEL:
NINJA := ninja
NINJA_FLAGS :=
ifdef VERBOSE
NINJA_FLAGS += -v
endif
ifdef NP
NINJA_FLAGS += -j $(NP)
endif
STANDARD_TARGETS := install test package package_source edit_cache rebuild_cache
BUILD_OBJ := "^build $(SUBDIR)/CMakeFiles/\([^:]*\.o\):.*"
OBJECTS := $(shell sed -n "\|"$(BUILD_OBJ)"| {s|"$(BUILD_OBJ)"|CMakeFiles/\1|;p}" $(TOPDIR)/build.ninja)
all $(STANDARD_TARGETS):
$(NINJA) -C $(TOPDIR) $(NINJA_FLAGS) $(SUBDIR)/$@
$(TARGETS):
$(NINJA) -C $(TOPDIR) $(NINJA_FLAGS) $@
$(OBJECTS):
$(NINJA) -C $(TOPDIR) $(NINJA_FLAGS) $(SUBDIR)/$@
clean:
$(NINJA) -C $(TOPDIR) $(NINJA_FLAGS) -t clean $(SUBDIR)/all
help:
@echo "This Makefile supports the following standard targets:"
@echo ""
@for t in "all (default)" clean help $(STANDARD_TARGETS); do echo " $$t"; done
@echo ""
@echo "and the following project targets:"
@echo ""
@for t in $(sort $(TARGETS)); do echo " $$t"; done
@echo ""
@echo "Run 'make help-objects' to list object files."
help-objects:
@echo "This Makefile supports the following object files:"
@echo ""
@for t in $(sort $(OBJECTS)); do echo " $$t"; done
.PHONY: all clean help help-objects $(STANDARD_TARGETS) $(TARGETS) $(OBJECTS)