Update of /cvsroot/wxlua/wxLua/modules/wxbind/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13376/wxLua/modules/wxbind/src
Added Files:
Makefile
Log Message:
add makefile for wxwidgets binding library
--- NEW FILE: Makefile ---
# File: Makefile
# Author: J Winwood
# Created: 2002
# Updated:
# Copyright: (c) 2002 Lomtick Software. All rights reserved.
#
# Makefile for wxLuaBinding library using gmake
# Override this on the command line to use your own luasetup.h
WXLUASETUP = luasetup.h
WXCONFIG := wx-config
WXDIR = $(shell $(WXCONFIG) --prefix)
WXBASENAME = $(shell $(WXCONFIG) --basename)
WXLIBBASE = $(shell $(WXCONFIG) --basename)
WXVERSION = $(shell $(WXCONFIG) --version)
WXRELEASE = $(shell $(WXCONFIG) --release)
CXXFLAGS = $(shell $(WXCONFIG) --cxxflags) -MMD -g -Wall
LDLIBS = $(shell $(WXCONFIG) --libs)
CXX = $(shell $(WXCONFIG) --cxx)
APPEXTRADEFS=-I../../ -I$(WXDIR)/contrib/include -fexceptions -DLUACALL=
LIBVERSION_CURRENT=1
LIBVERSION_REVISION=5
LIBVERSION_AGE=0
TARGET_LIBNAME = lib$(WXLIBBASE)_wxluabind-$(WXRELEASE)
TARGET_LIBDIR = $(WXDIR)/lib
TARGET_LIB_STATIC = $(WXDIR)/lib/$(TARGET_LIBNAME).a
TARGET_LIB_SHARED = $(WXDIR)/lib/$(TARGET_LIBNAME).so.$(LIBVERSION_CURRENT).$(LIBVERSION_REVISION).$(LIBVERSION_AGE)
TARGET_LIB_LINK1 = $(TARGET_LIBNAME).so.$(LIBVERSION_CURRENT)
TARGET_LIB_LINK2 = $(TARGET_LIBNAME).so
RM = rm -f
AR = ar
AROPTIONS = rcu
RANLIB = ranlib
LN_S = ln -s
HEADERS =
SOURCES = \
../../../modules/wxbind/src/appframe.cpp \
../../../modules/wxbind/src/clipdrag.cpp \
../../../modules/wxbind/src/config.cpp \
../../../modules/wxbind/src/controls.cpp \
../../../modules/wxbind/src/data.cpp \
../../../modules/wxbind/src/datetime.cpp \
../../../modules/wxbind/src/defsutil.cpp \
../../../modules/wxbind/src/dialogs.cpp\
../../../modules/wxbind/src/event.cpp \
../../../modules/wxbind/src/file.cpp \
../../../modules/wxbind/src/fl.cpp \
../../../modules/wxbind/src/gdi.cpp \
../../../modules/wxbind/src/geometry.cpp \
../../../modules/wxbind/src/grid.cpp \
../../../modules/wxbind/src/help.cpp \
../../../modules/wxbind/src/html.cpp \
../../../modules/wxbind/src/image.cpp \
../../../modules/wxbind/src/mdi.cpp \
../../../modules/wxbind/src/menutool.cpp \
../../../modules/wxbind/src/plot.cpp \
../../../modules/wxbind/src/print.cpp \
../../../modules/wxbind/src/regex.cpp \
../../../modules/wxbind/src/sizer.cpp \
../../../modules/wxbind/src/socket.cpp \
../../../modules/wxbind/src/stc.cpp \
../../../modules/wxbind/src/thread.cpp \
../../../modules/wxbind/src/wave.cpp \
../../../modules/wxbind/src/windows.cpp \
../../../modules/wxbind/src/wx_builtin.cpp \
../../../modules/wxbind/src/wx_class.cpp \
../../../modules/wxbind/src/wx_define.cpp \
../../../modules/wxbind/src/wx_event.cpp \
../../../modules/wxbind/src/wxlhtmlwin.cpp \
../../../modules/wxbind/src/wxlprint.cpp \
../../../modules/wxbind/src/wxlua.cpp \
../../../modules/wxbind/src/wx_object.cpp \
../../../modules/wxbind/src/xml.cpp
OBJECTS=$(SOURCES:.cpp=.o)
DEPFILES=$(OBJECTS:.o=.d)
.cpp.o:
$(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS)-o $@ $<
all: $(TARGET_LIB_STATIC) $(TARGET_LIB_SHARED)
$(TARGET_LIB_STATIC): $(OBJECTS)
@$(RM) $@
$(AR) $(AROPTIONS) $@ $(OBJECTS)
$(RANLIB) $@
$(TARGET_LIB_SHARED): $(OBJECTS)
$(CXX) -shared -o $@ $(OBJECTS)
cd $(TARGET_LIBDIR) \
&& $(RM) $(TARGET_LIB_LINK1) $(TARGET_LIB_LINK2) \
&& $(LN_S) $(TARGET_LIB_SHARED) $(TARGET_LIB_LINK1) \
&& $(LN_S) $(TARGET_LIB_SHARED) $(TARGET_LIB_LINK2)
clean:
rm -f core $(OBJECTS) $(DEPFILES) \
$(TARGET_LIB_STATIC) $(TARGET_LIB_SHARED) \
$(TARGET_LIBDIR)/$(TARGET_LIB_LINK1) \
$(TARGET_LIBDIR)/$(TARGET_LIB_LINK2)
-include $(DEPFILES)
|