2013-03-03 10:30:39 +08:00
|
|
|
TARGET = HelloLua
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
COCOS_ROOT = ../../../..
|
|
|
|
INCLUDES = -I../ -I../Classes -I$(COCOS_ROOT)/CocosDenshion/include \
|
|
|
|
-I$(COCOS_ROOT)/scripting/lua/lua \
|
|
|
|
-I$(COCOS_ROOT)/scripting/lua/tolua \
|
|
|
|
-I$(COCOS_ROOT)/scripting/lua/cocos2dx_support
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
SOURCES = main.cpp ../Classes/AppDelegate.cpp
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
SHAREDLIBS += -lcocos2d -lcocosdenshion -llua
|
|
|
|
COCOS_LIBS = $(LIB_DIR)/libcocos2d.so $(LIB_DIR)/libcocosdenshion.so $(LIB_DIR)/liblua.so
|
2012-09-26 20:51:41 +08:00
|
|
|
|
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
include $(COCOS_ROOT)/cocos2dx/proj.linux/cocos2dx.mk
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
TARGET := $(BIN_DIR)/$(TARGET)
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
all: $(TARGET)
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|
2012-09-26 20:51:41 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
|
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) $(VISIBILITY) -c $< -o $@
|