1# File: Makefile 2# Author: John Labenski, J Winwood 3# Created: 2002 4# Updated: 5# Copyright: (c) 2002 Lomtick Software. All rights reserved. 6# 7# Makefile for wxLuaBinding library using gmake 8 9# Override this on the command line to use your own wxluasetup.h 10WXLUASETUP = wxluasetup.h 11 12# ---------------------------------------------------------------------------- 13# Set path to root of wxLua 14WXLUA_DIR = ../../.. 15 16# ---------------------------------------------------------------------------- 17# Include wxLua settings using wx-config for wxWidgets parameters 18 19include $(WXLUA_DIR)/build/Makefile_wx-config.in 20 21# ---------------------------------------------------------------------------- 22 23WXLUA_TARGET_LIBNAME = lib$(WXLUABINDBASE_LIB) 24 25# ---------------------------------------------------------------------------- 26 27HEADERS = 28SOURCES = \ 29 wxbase_base.cpp \ 30 wxbase_bind.cpp \ 31 wxbase_config.cpp \ 32 wxbase_data.cpp \ 33 wxbase_datetime.cpp \ 34 wxbase_file.cpp 35 36OBJECTS=$(SOURCES:.cpp=.o) 37DEPFILES=$(OBJECTS:.o=.d) 38 39# ---------------------------------------------------------------------------- 40 41.cpp.o: 42 $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< 43 44all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) 45 46clean: cleanlib 47 48# A test to make a shared lib to test dependencies 49test: $(OBJECTS) $(LUA_LIBS) 50 $(CXX) $(CXXFLAGS) $(APPEXTRADEFS) -g -O -o test -fPIC \ 51 `wx-config --libs base` -l$(LUA_LIBS) -l$(WXLUA_LIB) test.cpp 52 53 54# ---------------------------------------------------------------------------- 55# Include wxLua targets using wx-config for wxWidgets parameters 56 57include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in 58 59-include $(DEPFILES) 60