55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# GNU Make workspace makefile autogenerated by Premake
|
|
|
|
ifndef config
|
|
config=debug
|
|
endif
|
|
|
|
ifndef verbose
|
|
SILENT = @
|
|
endif
|
|
|
|
ifeq ($(config),debug)
|
|
CWebLibrary_config = debug
|
|
cweb_config = debug
|
|
endif
|
|
ifeq ($(config),release)
|
|
CWebLibrary_config = release
|
|
cweb_config = release
|
|
endif
|
|
|
|
PROJECTS := CWebLibrary cweb
|
|
|
|
.PHONY: all clean help $(PROJECTS)
|
|
|
|
all: $(PROJECTS)
|
|
|
|
CWebLibrary:
|
|
ifneq (,$(CWebLibrary_config))
|
|
@echo "==== Building CWebLibrary ($(CWebLibrary_config)) ===="
|
|
@${MAKE} --no-print-directory -C . -f CWebLibrary.make config=$(CWebLibrary_config)
|
|
endif
|
|
|
|
cweb: CWebLibrary
|
|
ifneq (,$(cweb_config))
|
|
@echo "==== Building cweb ($(cweb_config)) ===="
|
|
@${MAKE} --no-print-directory -C . -f cweb.make config=$(cweb_config)
|
|
endif
|
|
|
|
clean:
|
|
@${MAKE} --no-print-directory -C . -f CWebLibrary.make clean
|
|
@${MAKE} --no-print-directory -C . -f cweb.make clean
|
|
|
|
help:
|
|
@echo "Usage: make [config=name] [target]"
|
|
@echo ""
|
|
@echo "CONFIGURATIONS:"
|
|
@echo " debug"
|
|
@echo " release"
|
|
@echo ""
|
|
@echo "TARGETS:"
|
|
@echo " all (default)"
|
|
@echo " clean"
|
|
@echo " CWebLibrary"
|
|
@echo " cweb"
|
|
@echo ""
|
|
@echo "For more information, see https://github.com/premake/premake-core/wiki"
|