Home modules.gotpike.org
Username: Password: [Create Account]
[Forgot Password?]

Modules

ADT
Database
GTK2
GUI
IP
PiJAX
Public
Sql
Stdio
Subversion
System
Tools
Xosd
lua
v4l2
wx

Recent Changes

Public.Parser.XML2 1.50
Public.ZeroMQ 1.1
Public.Template.Mustache 1.0
Public.Protocols.XMPP 1.4
Sql.Provider.jdbc 1.0

Popular Downloads

Public.Parser.JSON2 1.0
Public.Parser.JSON 0.2
GTK2 2.23
Public.Web.FCGI 1.8
Public.Parser.XML2 1.48


Module Information
wx
Viewing 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


gotpike.org | Copyright © 2004 - 2019 | Pike is a trademark of Department of Computer and Information Science, Linköping University