97ad0f26789872365ecf022a34818d8636e2ba9b
Christian Heimke BlinkenLib v.0.1.1 (2005-01...

Christian Heimke authored 13 years ago

1) # BlinkenLib
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

2) # version 0.6.0 date 2008-05-15
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

3) # Copyright 2004-2008 Stefan Schuermans <stefan@blinkenarea.org>
Christian Heimke BlinkenLib v.0.1.1 (2005-01...

Christian Heimke authored 13 years ago

4) # Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
5) # a blinkenarea.org project
6) 
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

7) INSTALL=install
Christian Heimke BlinkenLib v.0.1.1 (2005-01...

Christian Heimke authored 13 years ago

8) 
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

9) VERSION_MAJOR=0
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

10) VERSION_MINOR=6
11) VERSION_REVISION=0
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

12) VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_REVISION)
Christian Heimke BlinkenLib v.0.1.1 (2005-01...

Christian Heimke authored 13 years ago

13) 
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

14) ENV_PREFIX=$(shell echo $$PREFIX)
15) STOW_DIR=/usr/local/stow
16) STOW_PREFIX=$(STOW_DIR)/BlinkenLib-$(VERSION)
17) DEF_PREFIX=/usr/local
18) ifneq ($(ENV_PREFIX),)
19)   PREFIX=$(ENV_PREFIX)
20) else
21)   ifeq ($(shell if [ -d $(STOW_DIR) ]; then echo stow; fi),stow)
22)     PREFIX=$(STOW_PREFIX)
23)   else
24)     PREFIX=$(DEF_PREFIX)
25)   endif
26) endif
Christian Heimke BlinkenLib v.0.1.1 (2005-01...

Christian Heimke authored 13 years ago

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

Christian Heimke authored 13 years ago

28) HEADERS=BlinkenLib.h BlinkenMovie.h BlinkenFrame.h BlinkenColorizer.h config.h
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

29) LIBS=libBlinkenLib.a libBlinkenLib.so.$(VERSION)
30) EXECS=BlinkenConv BlinkenSend BlinkenRecv BlinkenOutput
Christian Heimke BlinkenLib v.0.5.3 (2007-12...

Christian Heimke authored 13 years ago

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

Christian Heimke authored 13 years ago

32) .phony: all conf clean distclean install uninstall
Christian Heimke BlinkenLib v.0.1.1 (2005-01...

Christian Heimke authored 13 years ago

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

Christian Heimke authored 13 years ago

34) all: conf
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

35) 	$(MAKE) -C BlinkenLib all
Christian Heimke BlinkenLib v.0.5 (2005-12-06)

Christian Heimke authored 13 years ago

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

Christian Heimke authored 13 years ago

37) conf:
38) 	$(MAKE) -C config all
39) 
40) clean: conf
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

41) 	$(MAKE) -C BlinkenLib clean
42) 
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

43) distclean: clean
44) 	$(MAKE) -C config clean
45) 
46) install: all
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

47) 	$(INSTALL) -d $(PREFIX)/include/BlinkenLib
48) 	$(INSTALL) -t $(PREFIX)/include/BlinkenLib $(addprefix BlinkenLib/, $(HEADERS))
49) 	$(INSTALL) -d $(PREFIX)/lib
50) 	$(INSTALL) -t $(PREFIX)/lib $(addprefix BlinkenLib/, $(LIBS))
51) 	ln -sf libBlinkenLib.so.$(VERSION) $(PREFIX)/lib/libBlinkenLib.so.$(VERSION_MAJOR)
52) 	ln -sf libBlinkenLib.so.$(VERSION_MAJOR) $(PREFIX)/lib/libBlinkenLib.so
53) 	$(INSTALL) -d $(PREFIX)/bin
54) 	$(INSTALL) -t $(PREFIX)/bin $(addprefix BlinkenLib/, $(EXECS))
55) 
56) uninstall:
57) 	rm -f $(addprefix $(PREFIX)/bin/, $(EXECS))
58) 	rm -f $(PREFIX)/lib/libBlinkenLib.so
59) 	rm -f $(PREFIX)/lib/libBlinkenLib.so.$(VERSION_MAJOR)
60) 	rm -f $(addprefix $(PREFIX)/lib/, $(LIBS))
61) 	rm -rf $(PREFIX)/include/BlinkenLib