All pastes #331117 Raw Edit

Miscellany

public text v1 · immutable
#331117 ·published 2007-01-28 15:52 UTC
rendered paste body
# libalphafy - A hack to give Second Life on Linux proper alpha channels
# Written February 11, 2006 by Jimmy Kaplowitz <secondlife@pensezbien.org>
# Released under the public domain, although due credit is appreciated

all: libalphafy.so

%.so:	%.o
	ld -shared -o $@ $< -ldl `sdl-config --libs`

%.o:	%.c
	gcc -fPIC -c $< -D_GNU_SOURCE `sdl-config --cflags`

tidy:
	rm -f *.o

clean:	tidy
	rm -f *.so

.PHONY:	all tidy clean