15 lines
333 B
Makefile
15 lines
333 B
Makefile
INSTALL = $(PWD)
|
|
CFLAGS = `pkg-config --cflags guile-cairo cgif`
|
|
LIBS = `pkg-config --libs guile-cairo cgif`
|
|
|
|
all: libguilecgif.so config.scm
|
|
|
|
libguilecgif.so: guile-cgif.c
|
|
$(CC) $(CFLAGS) -shared -fPIC -o $@ $^ $(LIBS)
|
|
|
|
config.scm: config.scm.in
|
|
sed 's|INSTALLDIR|$(INSTALL)|' < $< > $@
|
|
|
|
clean:
|
|
rm -rf libguilecgif.so config.scm
|