BlinkenArea - GitList
Repositories
Blog
Wiki
BlinkenLib
Code
Commits
Branches
Tags
Search
Tree:
1a9db96
Branches
Tags
master
v0.1
v0.2
v0.3
v0.3.1
v0.4
v0.4.1
v0.5
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.6.5
v0.6.6
v0.6.7
v0.6.8
v0.6.9
v0.7.0
v0.7.1
v0.7.10
v0.7.2
v0.7.3
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.7.9
v0.8.0
v0.8.1
BlinkenLib
config
Makefile
implement reading GIFs
Stefan Schuermans
commited
1a9db96
at 2016-12-18 18:52:03
Makefile
Blame
History
Raw
# BlinkenLib # Copyright 2004-2016 Stefan Schuermans <stefan@schuermans.info> # Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html # a blinkenarea.org project CC:=gcc INCDIR:=-I/sw/include LIBDIR:=-L/sw/lib .phony: all clean all: config.cfg config.mk config.h osx.cfg: echo "OSX=" | tr -d '\n' >osx.cfg (if [ "$$(uname -s)" == "Darwin" ]; then echo "1"; else echo "0"; fi) >>osx.cfg mng.cfg: echo "MNG=" | tr -d '\n' >mng.cfg (($(CC) $(INCDIR) $(LIBDIR) -o mng mng.c -lmng && ./mng && echo "1") || echo "0") >>mng.cfg rm -f mng gif.cfg: echo "GIF=" | tr -d '\n' >gif.cfg (($(CC) $(INCDIR) $(LIBDIR) -o gif gif.c -lgif && ./gif && echo "1") || echo "0") >>gif.cfg rm -f gif config.cfg: osx.cfg mng.cfg gif.cfg cat $+ >config.cfg config.mk: config.cfg sed 's/^\([A-Z]*\)=\([01]\)$$/BLINKENLIB_CFG_\1:=\2/' <$< >$@ config.h: config.cfg Makefile ../version.mk sed 's/^\([A-Z]*\)=0$$/#undef BLINKENLIB_CFG_\1/;s/^\([A-Z]*\)=1$$/#define BLINKENLIB_CFG_\1/' <$< >$@ echo '#define BLINKENLIB_CONFIG "' | tr -d '\n' >>$@ sed 's/^\([A-Z]*\)=0$$/\1-/;s/^\([A-Z]*\)=1$$/\1+/' <$< | tr '\n' ' ' | sed 's/ *$$//' | tr -d '\n' >>$@ echo '"' >>$@ grep '^VERSION_[A-Z]*:=[0-9]*' ../version.mk | sed 's/^/#define BLINKENLIB_/;s/:=/ /' >>$@ clean: rm -f *.cfg config.mk config.h