68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
|
|
# Alternative GNU Make workspace makefile autogenerated by Premake
|
||
|
|
|
||
|
|
ifndef config
|
||
|
|
config=debug
|
||
|
|
endif
|
||
|
|
|
||
|
|
ifndef verbose
|
||
|
|
SILENT = @
|
||
|
|
endif
|
||
|
|
|
||
|
|
ifeq ($(config),debug)
|
||
|
|
ImGui_config = debug
|
||
|
|
ImGuiNodeEditor_config = debug
|
||
|
|
SakuraVNE_config = debug
|
||
|
|
|
||
|
|
else ifeq ($(config),release)
|
||
|
|
ImGui_config = release
|
||
|
|
ImGuiNodeEditor_config = release
|
||
|
|
SakuraVNE_config = release
|
||
|
|
|
||
|
|
else
|
||
|
|
$(error "invalid configuration $(config)")
|
||
|
|
endif
|
||
|
|
|
||
|
|
PROJECTS := ImGui ImGuiNodeEditor SakuraVNE
|
||
|
|
|
||
|
|
.PHONY: all clean help $(PROJECTS)
|
||
|
|
|
||
|
|
all: $(PROJECTS)
|
||
|
|
|
||
|
|
ImGui:
|
||
|
|
ifneq (,$(ImGui_config))
|
||
|
|
@echo "==== Building ImGui ($(ImGui_config)) ===="
|
||
|
|
@${MAKE} --no-print-directory -C libs/imgui -f Makefile config=$(ImGui_config)
|
||
|
|
endif
|
||
|
|
|
||
|
|
ImGuiNodeEditor:
|
||
|
|
ifneq (,$(ImGuiNodeEditor_config))
|
||
|
|
@echo "==== Building ImGuiNodeEditor ($(ImGuiNodeEditor_config)) ===="
|
||
|
|
@${MAKE} --no-print-directory -C libs/imgui-node-editor -f Makefile config=$(ImGuiNodeEditor_config)
|
||
|
|
endif
|
||
|
|
|
||
|
|
SakuraVNE: ImGui ImGuiNodeEditor
|
||
|
|
ifneq (,$(SakuraVNE_config))
|
||
|
|
@echo "==== Building SakuraVNE ($(SakuraVNE_config)) ===="
|
||
|
|
@${MAKE} --no-print-directory -C SakuraVNE -f Makefile config=$(SakuraVNE_config)
|
||
|
|
endif
|
||
|
|
|
||
|
|
clean:
|
||
|
|
@${MAKE} --no-print-directory -C libs/imgui -f Makefile clean
|
||
|
|
@${MAKE} --no-print-directory -C libs/imgui-node-editor -f Makefile clean
|
||
|
|
@${MAKE} --no-print-directory -C SakuraVNE -f Makefile clean
|
||
|
|
|
||
|
|
help:
|
||
|
|
@echo "Usage: make [config=name] [target]"
|
||
|
|
@echo ""
|
||
|
|
@echo "CONFIGURATIONS:"
|
||
|
|
@echo " debug"
|
||
|
|
@echo " release"
|
||
|
|
@echo ""
|
||
|
|
@echo "TARGETS:"
|
||
|
|
@echo " all (default)"
|
||
|
|
@echo " clean"
|
||
|
|
@echo " ImGui"
|
||
|
|
@echo " ImGuiNodeEditor"
|
||
|
|
@echo " SakuraVNE"
|
||
|
|
@echo ""
|
||
|
|
@echo "For more information, see https://github.com/premake/premake-core/wiki"
|