make everything compile with Debian Jessie, add git ignores
Stefan Schuermans

Stefan Schuermans commited on 2015-12-19 20:28:18
Showing 15 changed files, with 109 additions and 8 deletions.

... ...
@@ -0,0 +1,31 @@
1
+NAMES = BlueBrightnessControl4
2
+
3
+GNETLIST = gnetlist
4
+GSCHEM = gschem
5
+PS2PDF = ps2pdf
6
+
7
+.PHONY: all nets pdfs tidy clean
8
+.SUFFIXES:
9
+.SECONDARY:
10
+
11
+all: nets pdfs tidy
12
+
13
+nets: $(addsuffix .net,$(NAMES))
14
+
15
+pdfs: $(addsuffix .sch.pdf,$(NAMES)) $(patsubst %.ps,%.pdf,$(wildcard *.ps))
16
+
17
+%.net: %.sch
18
+	$(GNETLIST) -q -g PCB -o $@ $<
19
+
20
+%.sch.ps: %.sch gschem-print.scm
21
+	$(GSCHEM) -p -s gschem-print.scm -o $@ $<
22
+
23
+%.pdf: %.ps
24
+	$(PS2PDF) $< $@
25
+
26
+tidy:
27
+	rm -f *~ *- *.log *.ps
28
+
29
+clean: tidy
30
+	rm -f *.net *.pdf
31
+
... ...
@@ -1,2 +0,0 @@
1
-#! /bin/bash
2
-gnetlist -q -g PCB -o BlueBrightnessControl4.net BlueBrightnessControl4.sch
... ...
@@ -0,0 +1,8 @@
1
+(paper-size 11.69 8.27) ; A4
2
+(output-orientation "landscape")
3
+(output-type "limits")
4
+(output-color "disabled")
5
+(gschem-postscript "dummy.ps")
6
+(gschem-use-rc-values)
7
+(gschem-exit)
8
+
... ...
@@ -0,0 +1,5 @@
1
+*.cof
2
+*.gen.inc
3
+*.hex
4
+*.lst
5
+*.obj
... ...
@@ -0,0 +1,31 @@
1
+NAMES = BlueDataDistributor
2
+
3
+GNETLIST = gnetlist
4
+GSCHEM = gschem
5
+PS2PDF = ps2pdf
6
+
7
+.PHONY: all nets pdfs tidy clean
8
+.SUFFIXES:
9
+.SECONDARY:
10
+
11
+all: nets pdfs tidy
12
+
13
+nets: $(addsuffix .net,$(NAMES))
14
+
15
+pdfs: $(addsuffix .sch.pdf,$(NAMES)) $(patsubst %.ps,%.pdf,$(wildcard *.ps))
16
+
17
+%.net: %.sch
18
+	$(GNETLIST) -q -g PCB -o $@ $<
19
+
20
+%.sch.ps: %.sch gschem-print.scm
21
+	$(GSCHEM) -p -s gschem-print.scm -o $@ $<
22
+
23
+%.pdf: %.ps
24
+	$(PS2PDF) $< $@
25
+
26
+tidy:
27
+	rm -f *~ *- *.log *.ps
28
+
29
+clean: tidy
30
+	rm -f *.net *.pdf
31
+
... ...
@@ -0,0 +1,8 @@
1
+(paper-size 11.69 8.27) ; A4
2
+(output-orientation "landscape")
3
+(output-type "limits")
4
+(output-color "disabled")
5
+(gschem-postscript "dummy.ps")
6
+(gschem-use-rc-values)
7
+(gschem-exit)
8
+
... ...
@@ -0,0 +1,9 @@
1
+*.d
2
+*.eep
3
+*.elf
4
+*.hex
5
+*.lss
6
+*.lst
7
+*.map
8
+*.o
9
+*.sym
... ...
@@ -5,7 +5,6 @@
5 5
  */
6 6
 
7 7
 #include <avr/interrupt.h>
8
-#include <avr/signal.h>
9 8
 
10 9
 #include "arp.h"
11 10
 #include "ip.h"
... ...
@@ -31,7 +30,7 @@ unsigned char Timing20 = 0;
31 30
 unsigned char Timing20_10 = 0;
32 31
 
33 32
 // 208us interrupt (timer 0 compare match)
34
-SIGNAL( SIG_OUTPUT_COMPARE0 )
33
+ISR(OUTPUT_COMP0_vect)
35 34
 {
36 35
   // call serial output
37 36
   SerialOutputBitTime( );
... ...
@@ -0,0 +1,5 @@
1
+*.cof
2
+*.geninc
3
+*.hex
4
+*.lst
5
+*.obj
... ...
@@ -0,0 +1,2 @@
1
+*.o
2
+blue_dist
... ...
@@ -4,13 +4,13 @@
4 4
 # Copyleft: GNU public license V2.0 - http://www.gnu.org/copyleft/gpl.html
5 5
 # a BlinkenArea project - http://www.blinkenarea.org/
6 6
 
7
-BLINKENLIB_INCLUDE_DIR = /usr/local/include
7
+BLINKENLIB_INCLUDE_DIR = /usr/local/include/BlinkenLib
8 8
 BLINKENLIB_LIB_DIR = /usr/local/lib
9 9
 
10 10
 CC = gcc
11 11
 CFLAGS = -W -Wall -I$(BLINKENLIB_INCLUDE_DIR) -O2
12
-LFLAGS = -lm
13
-LIBS = $(BLINKENLIB_LIB_DIR)/BlinkenLib.a
12
+LFLAGS = -lm -L$(BLINKENLIB_LIB_DIR)
13
+LIBS = -lBlinkenLib
14 14
 
15 15
 all: blue_dist
16 16
 
... ...
@@ -33,7 +33,7 @@ static void end_signal( int sig_no )
33 33
   //end program
34 34
   end = 1;
35 35
   //keep compiler happy
36
-  sig_no = 0;
36
+  (void)sig_no;
37 37
 }
38 38
 
39 39
 //get current number of milliseconds (warps around)
40 40