Skip to content

Commit

Permalink
Add the Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
cainhuang committed Jul 25, 2017
1 parent b5e3f05 commit 3bb7f13
Showing 1 changed file with 148 additions and 0 deletions.
148 changes: 148 additions & 0 deletions projects/gmake/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# GNU Make solution makefile autogenerated by Premake
# Type "make help" for usage help

ifndef config
config=debugstatic32
endif
export config

PROJECTS := behaviac btunittest btremotetest demo_running usertest tutorial_1 tutorial_1_1 tutorial_1_2 tutorial_2 tutorial_3 tutorial_4 tutorial_5 tutorial_6 tutorial_7 tutorial_8 tutorial_9 tutorial_10 tutorial_11 tutorial_12 tutorial_13

.PHONY: all clean help $(PROJECTS)

all: $(PROJECTS)

behaviac:
@echo "==== Building behaviac ($(config)) ===="
@${MAKE} --no-print-directory -C . -f behaviac.make

btunittest: behaviac
@echo "==== Building btunittest ($(config)) ===="
@${MAKE} --no-print-directory -C . -f btunittest.make

btremotetest: behaviac
@echo "==== Building btremotetest ($(config)) ===="
@${MAKE} --no-print-directory -C . -f btremotetest.make

demo_running: behaviac
@echo "==== Building demo_running ($(config)) ===="
@${MAKE} --no-print-directory -C . -f demo_running.make

usertest: behaviac
@echo "==== Building usertest ($(config)) ===="
@${MAKE} --no-print-directory -C . -f usertest.make

tutorial_1: behaviac
@echo "==== Building tutorial_1 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_1.make

tutorial_1_1: behaviac
@echo "==== Building tutorial_1_1 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_1_1.make

tutorial_1_2: behaviac
@echo "==== Building tutorial_1_2 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_1_2.make

tutorial_2: behaviac
@echo "==== Building tutorial_2 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_2.make

tutorial_3: behaviac
@echo "==== Building tutorial_3 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_3.make

tutorial_4: behaviac
@echo "==== Building tutorial_4 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_4.make

tutorial_5: behaviac
@echo "==== Building tutorial_5 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_5.make

tutorial_6: behaviac
@echo "==== Building tutorial_6 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_6.make

tutorial_7: behaviac
@echo "==== Building tutorial_7 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_7.make

tutorial_8: behaviac
@echo "==== Building tutorial_8 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_8.make

tutorial_9: behaviac
@echo "==== Building tutorial_9 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_9.make

tutorial_10: behaviac
@echo "==== Building tutorial_10 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_10.make

tutorial_11: behaviac
@echo "==== Building tutorial_11 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_11.make

tutorial_12: behaviac
@echo "==== Building tutorial_12 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_12.make

tutorial_13: behaviac
@echo "==== Building tutorial_13 ($(config)) ===="
@${MAKE} --no-print-directory -C . -f tutorial_13.make

clean:
@${MAKE} --no-print-directory -C . -f behaviac.make clean
@${MAKE} --no-print-directory -C . -f btunittest.make clean
@${MAKE} --no-print-directory -C . -f btremotetest.make clean
@${MAKE} --no-print-directory -C . -f demo_running.make clean
@${MAKE} --no-print-directory -C . -f usertest.make clean
@${MAKE} --no-print-directory -C . -f tutorial_1.make clean
@${MAKE} --no-print-directory -C . -f tutorial_1_1.make clean
@${MAKE} --no-print-directory -C . -f tutorial_1_2.make clean
@${MAKE} --no-print-directory -C . -f tutorial_2.make clean
@${MAKE} --no-print-directory -C . -f tutorial_3.make clean
@${MAKE} --no-print-directory -C . -f tutorial_4.make clean
@${MAKE} --no-print-directory -C . -f tutorial_5.make clean
@${MAKE} --no-print-directory -C . -f tutorial_6.make clean
@${MAKE} --no-print-directory -C . -f tutorial_7.make clean
@${MAKE} --no-print-directory -C . -f tutorial_8.make clean
@${MAKE} --no-print-directory -C . -f tutorial_9.make clean
@${MAKE} --no-print-directory -C . -f tutorial_10.make clean
@${MAKE} --no-print-directory -C . -f tutorial_11.make clean
@${MAKE} --no-print-directory -C . -f tutorial_12.make clean
@${MAKE} --no-print-directory -C . -f tutorial_13.make clean

help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debugstatic32"
@echo " releasestatic32"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " behaviac"
@echo " btunittest"
@echo " btremotetest"
@echo " demo_running"
@echo " usertest"
@echo " tutorial_1"
@echo " tutorial_1_1"
@echo " tutorial_1_2"
@echo " tutorial_2"
@echo " tutorial_3"
@echo " tutorial_4"
@echo " tutorial_5"
@echo " tutorial_6"
@echo " tutorial_7"
@echo " tutorial_8"
@echo " tutorial_9"
@echo " tutorial_10"
@echo " tutorial_11"
@echo " tutorial_12"
@echo " tutorial_13"
@echo ""
@echo "For more information, see http://industriousone.com/premake/quick-start"

0 comments on commit 3bb7f13

Please sign in to comment.