# File:		Makefile
# Author:	John Labenski, 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 wxluasetup.h
WXLUASETUP = wxluasetup.h

# ----------------------------------------------------------------------------
# Set path to root of wxLua
WXLUA_DIR = ../../..

# ----------------------------------------------------------------------------
# Include wxLua settings using wx-config for wxWidgets parameters

include $(WXLUA_DIR)/build/Makefile_wx-config.in

# ----------------------------------------------------------------------------

WXLUA_TARGET_LIBNAME = lib$(WXLUABINDCORE_LIB)

# ----------------------------------------------------------------------------

HEADERS =
SOURCES = \
    wxcore_appframe.cpp \
    wxcore_bind.cpp \
    wxcore_clipdrag.cpp \
    wxcore_controls.cpp \
    wxcore_core.cpp \
    wxcore_defsutils.cpp \
    wxcore_dialogs.cpp \
    wxcore_event.cpp \
    wxcore_gdi.cpp \
    wxcore_geometry.cpp \
    wxcore_help.cpp \
    wxcore_image.cpp \
    wxcore_mdi.cpp \
    wxcore_menutool.cpp \
    wxcore_picker.cpp \
    wxcore_print.cpp \
    wxcore_sizer.cpp \
    wxcore_windows.cpp \
    wxcore_wxlcore.cpp

OBJECTS=$(SOURCES:.cpp=.o)
DEPFILES=$(OBJECTS:.o=.d)

# ----------------------------------------------------------------------------

.cpp.o:
	$(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $<

all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED)

clean: cleanlib

# ----------------------------------------------------------------------------
# Include wxLua targets using wx-config for wxWidgets parameters

include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in

-include $(DEPFILES)
