94b06d97e89d5ad77f3f7e8a6acf7bc1162052c4
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

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.5.5 (2008-03...

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) CFLAGS:=-Wall -Wextra -Werror -fPIC -O2 -I..
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

8) LIB_LDFLAGS:=
9) LIB_LDLIBS:=
10) BIN_LDFLAGS:=-L.
11) BIN_LDLIBS:=
Stefan Schuermans improve Makefiles, introduc...

Stefan Schuermans authored 10 years ago

12) AR:=ar
13) RANLIB:=ranlib
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

14) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

15) -include ../version.mk
16) -include ../config/config.mk
17) 
18) LIB_OBJS:=BlinkenColorizer.o BlinkenFrame.o BlinkenMovie.o \
19)           BlinkenProto.o Tools.o
20) 
21) ifeq ($(BLINKENLIB_CFG_MNG),1)
22) LIB_OBJS+=BlinkenMng.o
23) LIB_LDLIBS+=-lmng -lz
Stefan Schuermans support for giflib 5.x (unt...

Stefan Schuermans authored 7 years ago

24) endif
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

25) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

26) ifeq ($(BLINKENLIB_CFG_GIF),1)
27) LIB_OBJS+=BlinkenGif.o
28) LIB_LDLIBS+=-lgif
29) endif
30) 
31) ifeq ($(BLINKENLIB_CFG_WIN),1)
Stefan Schuermans fix soname

Stefan Schuermans authored 6 years ago

32) SHLIBEXT:=dll
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

33) LIB_LDLIBS+=-lws2_32
34) BIN_LDLIBS+=-lws2_32
35) else
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

36) ifeq ($(BLINKENLIB_CFG_OSX),1)
Stefan Schuermans Makefile fixed for MAC OS X...

Stefan Schuermans authored 13 years ago

37) CFLAGS+=-I/sw/include
Stefan Schuermans fix soname

Stefan Schuermans authored 6 years ago

38) SHLIBEXT:=dylib
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

39) LIB_LDFLAGS+=-L/sw/lib
40) BIN_LDFLAGS+=-L/sw/lib -Wl,-rpath,'$$ORIGIN'
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

41) else
Stefan Schuermans fix soname

Stefan Schuermans authored 6 years ago

42) SHLIBEXT:=so
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

43) LIB_LDFLAGS+=-Wl,-soname,libBlinkenLib.$(SHLIBEXT).$(VERSION_MAJOR)
44) BIN_LDFLAGS+=-Wl,-rpath,'$$ORIGIN'
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

45) endif
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

46) endif
47) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

48) .PHONY: all clean
49) .SUFFIXES:
50) SUFFIXES:=
51) .SECONDARY:
Stefan Schuermans implement reading GIFs

Stefan Schuermans authored 7 years ago

52) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

53) all: libBlinkenLib.a \
54)      libBlinkenLib.$(SHLIBEXT).$(VERSION_MAJOR) \
55)      libBlinkenLib.$(SHLIBEXT).$(VERSION) libBlinkenLib.$(SHLIBEXT)
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

56) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

57) all: BlinkenConv BlinkenSend BlinkenRecv
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

58) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

59) ifeq ($(BLINKENLIB_CFG_WIN),0)
60) all: BlinkenOutput BlinkenDeviceOutput
61) endif
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

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

Christian Heimke authored 13 years ago

63) config.h: ../config/config.h
64) 	cp $< $@
65) 
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

66) BlinkenColorizer.o: BlinkenColorizer.c BlinkenColorizer.h Tools.h
67) 	$(CC) $(CFLAGS) -c -o $@ $<
68) 
Stefan Schuermans added support for creating/...

Stefan Schuermans authored 12 years ago

69) BlinkenProto.o: BlinkenProto.c BlinkenProto.h BlinkenProtoIntern.h
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

70) 	$(CC) $(CFLAGS) -c -o $@ $<
71) 
Stefan Schuermans added support for creating/...

Stefan Schuermans authored 12 years ago

72) BlinkenFrame.o: BlinkenFrame.c BlinkenConstants.h BlinkenColorizer.h BlinkenFrame.h BlinkenProto.h BlinkenProtoIntern.h Tools.h
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

73) 	$(CC) $(CFLAGS) -c -o $@ $<
74) 
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

75) BlinkenGif.o: BlinkenGif.c BlinkenConstants.h BlinkenColorizer.h BlinkenFrame.h BlinkenProto.h BlinkenMovie.h Tools.h config.h
76) 	$(CC) $(CFLAGS) -c -o $@ $<
77) 
78) BlinkenMovie.o: BlinkenMovie.c BlinkenConstants.h BlinkenColorizer.h BlinkenFrame.h BlinkenProto.h BlinkenMovie.h BlinkenGif.h BlinkenMng.h Tools.h config.h
Stefan Schuermans added support for creating/...

Stefan Schuermans authored 12 years ago

79) 	$(CC) $(CFLAGS) -c -o $@ $<
80) 
81) BlinkenMng.o: BlinkenMng.c BlinkenConstants.h BlinkenColorizer.h BlinkenFrame.h BlinkenProto.h BlinkenMovie.h Tools.h config.h
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

82) 	$(CC) $(CFLAGS) -c -o $@ $<
83) 
84) Tools.o: Tools.c Tools.h
85) 	$(CC) $(CFLAGS) -c -o $@ $<
86) 
87) libBlinkenLib.a: $(LIB_OBJS)
88) 	$(AR) cr $@ $+
89) 	$(RANLIB) $@
90) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

91) libBlinkenLib.$(SHLIBEXT).$(VERSION): $(LIB_OBJS)
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

92) 	$(CC) -shared $(LIB_LDFLAGS) -o $@ $+ $(LIB_LDLIBS)
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

93) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

94) libBlinkenLib.$(SHLIBEXT).$(VERSION_MAJOR): libBlinkenLib.$(SHLIBEXT).$(VERSION)
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

95) 	rm -f $@
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

96) 	ln -s $< $@
97) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

98) libBlinkenLib.$(SHLIBEXT): libBlinkenLib.$(SHLIBEXT).$(VERSION_MAJOR)
Christian Heimke BlinkenLib v.0.6.0 (2008-05...

Christian Heimke authored 13 years ago

99) 	rm -f $@
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

100) 	ln -s $< $@
101) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

102) Tools2.o: Tools2.c Tools2.h
103) 	$(CC) $(CFLAGS) -c -o $@ $<
104) 
Stefan Schuermans added support for creating/...

Stefan Schuermans authored 12 years ago

105) BlinkenConv.o: BlinkenConv.c BlinkenLib.h config.h BlinkenColorizer.h BlinkenProto.h BlinkenFrame.h BlinkenMovie.h
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

106) 	$(CC) $(CFLAGS) -c -o $@ $<
107) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

108) BlinkenConv: BlinkenConv.o libBlinkenLib.$(SHLIBEXT)
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

109) 	$(CC) $(BIN_LDFLAGS) -o $@ $< -lBlinkenLib $(BIN_LDLIBS)
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

110) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

111) BlinkenSend.o: BlinkenSend.c BlinkenLib.h config.h BlinkenColorizer.h BlinkenProto.h BlinkenFrame.h BlinkenMovie.h Tools2.h
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

112) 	$(CC) $(CFLAGS) -c -o $@ $<
113) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

114) BlinkenSend: BlinkenSend.o Tools2.o libBlinkenLib.$(SHLIBEXT)
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

115) 	$(CC) $(BIN_LDFLAGS) -o $@ $(filter %.o,$^) -lBlinkenLib $(BIN_LDLIBS)
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

116) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

117) BlinkenRecv.o: BlinkenRecv.c BlinkenLib.h config.h BlinkenColorizer.h BlinkenProto.h BlinkenFrame.h BlinkenMovie.h Tools2.h
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

118) 	$(CC) $(CFLAGS) -c -o $@ $<
119) 
Stefan Schuermans add IPv6 support to Blinken...

Stefan Schuermans authored 10 years ago

120) BlinkenRecv: BlinkenRecv.o Tools2.o libBlinkenLib.$(SHLIBEXT)
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

121) 	$(CC) $(BIN_LDFLAGS) -o $@ $(filter %.o,$^) -lBlinkenLib $(BIN_LDLIBS)
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

122) 
Stefan Schuermans added support for creating/...

Stefan Schuermans authored 12 years ago

123) BlinkenOutput.o: BlinkenOutput.c BlinkenLib.h config.h BlinkenColorizer.h BlinkenProto.h BlinkenFrame.h BlinkenMovie.h
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

124) 	$(CC) $(CFLAGS) -c -o $@ $<
125) 
Christian Heimke BlinkenLib v.0.6.2 (2009-02...

Christian Heimke authored 13 years ago

126) BlinkenOutput: BlinkenOutput.o libBlinkenLib.$(SHLIBEXT)
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

127) 	$(CC) $(BIN_LDFLAGS) -o $@ $< -lBlinkenLib $(BIN_LDLIBS)
Christian Heimke BlinkenLib v.0.5.5 (2008-03...

Christian Heimke authored 13 years ago

128) 
Stefan Schuermans initial version of BlinkenD...

Stefan Schuermans authored 7 years ago

129) BlinkenDeviceOutput.o: BlinkenDeviceOutput.c BlinkenLib.h config.h BlinkenColorizer.h BlinkenProto.h BlinkenFrame.h BlinkenMovie.h
130) 	$(CC) $(CFLAGS) -c -o $@ $<
131) 
132) BlinkenDeviceOutput: BlinkenDeviceOutput.o libBlinkenLib.$(SHLIBEXT)
Stefan Schuermans update Windows support

Stefan Schuermans authored 7 years ago

133) 	$(CC) $(BIN_LDFLAGS) -o $@ $< -lBlinkenLib $(BIN_LDLIBS)
Stefan Schuermans initial version of BlinkenD...

Stefan Schuermans authored 7 years ago

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

Christian Heimke authored 13 years ago

135) clean:
Stefan Schuermans clean BlinkenDeviceOutput

Stefan Schuermans authored 7 years ago

136) 	rm -f BlinkenConv BlinkenSend BlinkenRecv BlinkenOutput BlinkenDeviceOutput libBlinkenLib.$(SHLIBEXT)* libBlinkenLib.a *.o config.h