3003b357482c8a9042887cfe2281ea89f322f9d9
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) 
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

10) CFGS:=$(addsuffix .cfg, osx mng gif gif4 gif5)
11) 
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

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

Christian Heimke authored 13 years ago

16) osx.cfg:
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

17) 	echo "OSX=" | tr -d '\n' >$@
18) 	(if [ "$$(uname -s)" == "Darwin" ]; then echo "1"; else echo "0"; fi) >>$@
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

19) 
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

20) mng.cfg:
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

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

Christian Heimke authored 13 years ago

23) 	rm -f mng
24) 
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

25) gif%.cfg:
26) 	echo "GIF$*=" | tr -d '\n' >$@
27) 	(($(CC) $(INCDIR) $(LIBDIR) -o gif$* gif$*.c -lgif && ./gif$* && echo "1") || echo "0") >>$@
28) 	rm -f gif$*
29) 
30) gif.cfg: gif4.cfg gif5.cfg
31) 	echo "GIF=" | tr -d '\n' >$@
32) 	((cat $^ | grep -q 1 && echo "1") || echo "0") >>$@
Stefan Schuermans implement reading GIFs

Stefan Schuermans authored 7 years ago

33) 
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

34) config.cfg: $(CFGS)
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

35) 	cat $+ >config.cfg
36) 
37) config.mk: config.cfg
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

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

Christian Heimke authored 13 years ago

39) 
Stefan Schuermans version info only in oine file

Stefan Schuermans authored 13 years ago

40) config.h: config.cfg Makefile ../version.mk
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

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

Stefan Schuermans authored 13 years ago

42) 	echo '#define BLINKENLIB_CONFIG "' | tr -d '\n' >>$@
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

43) 	sed 's/^\([A-Z0-9]*\)=0$$/\1-/;s/^\([A-Z0-9]*\)=1$$/\1+/' <$< | tr '\n' ' ' | sed 's/ *$$//' | tr -d '\n' >>$@
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

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

Stefan Schuermans authored 10 years ago

45) 	grep '^VERSION_[A-Z]*:=[0-9]*' ../version.mk | sed 's/^/#define BLINKENLIB_/;s/:=/ /' >>$@
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

46) 
47) clean:
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

48) 	rm -f $(CFGS) config.mk config.h