Skip to content

Commit

Permalink
Added Ruby window management library module
Browse files Browse the repository at this point in the history
git-svn-id: https://cixar.com/svn/arcanum/ruby/wm@243 bef290a0-58e6-0310-905f-ba19b0a2e6dd
  • Loading branch information
segphault committed Feb 20, 2005
0 parents commit dc1ce7c
Show file tree
Hide file tree
Showing 3 changed files with 769 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Makefile
@@ -0,0 +1,25 @@

CC = gcc

OPTS = -fPIC -Wall -g -02

INC = \
-I. \
-I/usr/X11R6/include \
-I/usr/include/glib-2.0 \
-I/usr/lib/glib-2.0/include \
-I/usr/lib/ruby/1.8/i386-linux \
-I/usr/lib/ruby/1.8/i386-linux

LIB = \
-L/usr/lib \
-L/usr/X11R6/lib \
-lSM -lICE -lX11 -lXmu -lglib-2.0 \
-lruby1.8 -lpthread -ldl -lcrypt -lm -lc

all:
$(CC) $(INC) -c wmlib.c
$(CC) -shared -o wmlib.so wmlib.o $(LIB)

clean:
rm -f *.o *.so
9 changes: 9 additions & 0 deletions test.rb
@@ -0,0 +1,9 @@
#!/usr/bin/env ruby

require 'wmlib'

include WM

for window in Window
puts "#{window} - #{window.winclass}"
end

0 comments on commit dc1ce7c

Please sign in to comment.