b064533a09c817687eed1096ada6c1845bb66481
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

1) # BlinkenLib
Stefan Schuermans update Copyright years

Stefan Schuermans authored 10 years ago

2) # Copyright 2004-2014Stefan Schuermans <stefan@blinkenarea.org>
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) 
6) CC=gcc
Stefan Schuermans Makefile fixed for MAC OS X...

Stefan Schuermans authored 13 years ago

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) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

23) config.cfg: osx.cfg mng.cfg
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

24) 	cat $+ >config.cfg
25) 
26) config.mk: config.cfg
27) 	sed 's/^\([A-Z]*\)=\([01]\)$$/BLINKENLIB_CFG_\1=\2/' <$< >$@
28) 
Stefan Schuermans version info only in oine file

Stefan Schuermans authored 13 years ago

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

Christian Heimke authored 13 years ago

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

31) 	echo '#define BLINKENLIB_CONFIG "' | tr -d '\n' >>$@
32) 	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

33) 	echo '"' >>$@
Stefan Schuermans version info only in oine file

Stefan Schuermans authored 13 years ago

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