Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Ruby window management library module
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
Showing
3 changed files
with
769 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'wmlib' | ||
|
||
include WM | ||
|
||
for window in Window | ||
puts "#{window} - #{window.winclass}" | ||
end |
Oops, something went wrong.