1a9db96e2559548e65c13044d84884dd1aae473d
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

1) # BlinkenLib
Stefan Schuermans implement reading GIFs

Stefan Schuermans authored 7 years ago

2) # Copyright 2004-2016 Stefan Schuermans <stefan@schuermans.info>
Stefan Schuermans cleanup file headers after...

Stefan Schuermans authored 13 years ago

3) # Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

4) # a blinkenarea.org project
5) 
Stefan Schuermans improve Makefiles, introduc...

Stefan Schuermans authored 10 years ago

6) CC:=gcc
7) INCDIR:=-I/sw/include
8) LIBDIR:=-L/sw/lib
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

9) 
10) .phony: all clean
11) 
12) all: config.cfg config.mk config.h
13) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

14) osx.cfg:
Stefan Schuermans Makefile fixed for MAC OS X...

Stefan Schuermans authored 13 years ago

15) 	echo "OSX=" | tr -d '\n' >osx.cfg
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

16) 	(if [ "$$(uname -s)" == "Darwin" ]; then echo "1"; else echo "0"; fi) >>osx.cfg
17) 
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

18) mng.cfg:
Stefan Schuermans Makefile fixed for MAC OS X...

Stefan Schuermans authored 13 years ago

19) 	echo "MNG=" | tr -d '\n' >mng.cfg
20) 	(($(CC) $(INCDIR) $(LIBDIR) -o mng mng.c -lmng && ./mng && echo "1") || echo "0") >>mng.cfg
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

21) 	rm -f mng
22) 
Stefan Schuermans implement reading GIFs

Stefan Schuermans authored 7 years ago

23) gif.cfg:
24) 	echo "GIF=" | tr -d '\n' >gif.cfg
25) 	(($(CC) $(INCDIR) $(LIBDIR) -o gif gif.c -lgif && ./gif && echo "1") || echo "0") >>gif.cfg
26) 	rm -f gif
27) 
28) config.cfg: osx.cfg mng.cfg gif.cfg
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

29) 	cat $+ >config.cfg
30) 
31) config.mk: config.cfg
Stefan Schuermans improve Makefiles, introduc...

Stefan Schuermans authored 10 years ago

32) 	sed 's/^\([A-Z]*\)=\([01]\)$$/BLINKENLIB_CFG_\1:=\2/' <$< >$@
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

33) 
Stefan Schuermans version info only in oine file

Stefan Schuermans authored 13 years ago

34) config.h: config.cfg Makefile ../version.mk
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

35) 	sed 's/^\([A-Z]*\)=0$$/#undef BLINKENLIB_CFG_\1/;s/^\([A-Z]*\)=1$$/#define BLINKENLIB_CFG_\1/' <$< >$@
Stefan Schuermans Makefile fixed for MAC OS X...

Stefan Schuermans authored 13 years ago

36) 	echo '#define BLINKENLIB_CONFIG "' | tr -d '\n' >>$@
37) 	sed 's/^\([A-Z]*\)=0$$/\1-/;s/^\([A-Z]*\)=1$$/\1+/' <$< | tr '\n' ' ' | sed 's/ *$$//' | tr -d '\n' >>$@
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

38) 	echo '"' >>$@
Stefan Schuermans improve Makefiles, introduc...

Stefan Schuermans authored 10 years ago

39) 	grep '^VERSION_[A-Z]*:=[0-9]*' ../version.mk | sed 's/^/#define BLINKENLIB_/;s/:=/ /' >>$@