665ce59b4006dd61d96203027c7365c787929936
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 8 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 update Windows support

Stefan Schuermans authored 7 years ago

10) CFGS:=$(addsuffix .cfg,win osx mng gif gif4 gif5)
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

11) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

12) .PHONY: all clean
13) .SUFFIXES:
14) SUFFIXES:=
15) .SECONDARY:
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

16) 
17) all: config.cfg config.mk config.h
18) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

19) win.cfg:
20) 	if echo '#include <windows.h>' | $(CC) -E -x c - >/dev/null 2>/dev/null; then echo "WIN=1"; else echo "WIN=0"; fi >$@
21) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

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

Stefan Schuermans authored 7 years ago

23) 	echo "OSX=" | tr -d '\n' >$@
24) 	(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

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

Christian Heimke authored 13 years ago

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

Stefan Schuermans authored 7 years ago

27) 	echo "MNG=" | tr -d '\n' >$@
28) 	(($(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

29) 	rm -f mng
30) 
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

31) gif%.cfg:
32) 	echo "GIF$*=" | tr -d '\n' >$@
33) 	(($(CC) $(INCDIR) $(LIBDIR) -o gif$* gif$*.c -lgif && ./gif$* && echo "1") || echo "0") >>$@
34) 	rm -f gif$*
35) 
36) gif.cfg: gif4.cfg gif5.cfg
37) 	echo "GIF=" | tr -d '\n' >$@
38) 	((cat $^ | grep -q 1 && echo "1") || echo "0") >>$@
Stefan Schuermans implement reading GIFs

Stefan Schuermans authored 8 years ago

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

Stefan Schuermans authored 7 years ago

40) config.cfg: $(CFGS)
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

41) 	cat $^ >config.cfg
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

42) 
43) config.mk: config.cfg
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

44) 	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

45) 
Stefan Schuermans version info only in oine file

Stefan Schuermans authored 13 years ago

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

Stefan Schuermans authored 7 years ago

47) 	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

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

Stefan Schuermans authored 7 years ago

49) 	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

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

Stefan Schuermans authored 10 years ago

51) 	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

52) 
53) clean:
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

54) 	rm -f $(CFGS) config.cfg config.mk config.h