
Contents of /wx-0.5/Makefile:
PIKE = pike
INSTALL = ginstall
# If you have different versions or flavors of wx installed, please
# point this to the right wx-config
WXCONFIG = wx-config
# 2.4
#WXCONFIG = /usr/bin/wxgtk2-2.4-config
# 2.6
WXVERSION = $(shell $(WXCONFIG) --release)
WXPORT = $(shell $(WXCONFIG) --basename | cut -b4-6)
OPTIONS = `$(WXCONFIG) --libs --cxxflags` -g
INCLUDES = `$(PIKE) -x module --query=include_path`
BINDGEN = $(PIKE) bindgen.pike
OBJECTS = wx.o handcoded.o handcoded2.o
CXX = g++
.PHONY: all install declarations clean
all: declarations wx.so
wx.so: $(OBJECTS)
$(CXX) $(OBJECTS) -shared $(OPTIONS) -I $(INCLUDES) -o wx.so
%.o: %.cc
$(CXX) -c $< $(OPTIONS) -I $(INCLUDES)
wx.cc: declarations/wx.binding
$(BINDGEN) declarations/wx.binding wx
declarations:
$(MAKE) -C declarations WXVERSION=$(WXVERSION) WXPORT=$(WXPORT)
install:
$(INSTALL) wx.so `$(PIKE) -x module --query=system_module_path`
clean:
rm -f $(OBJECTS) wx.so wx.cc wx.h
$(MAKE) -C declarations clean