pikeyd165 – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 TARGET:=pikeyd165
2  
3 #comment out the line below when _NOT_ cross compiling
4 #include crosscomp.rules
5  
6 ifneq ($(CROSS), yes)
7 CC := aarch64-linux-gnu-gcc
8 LDFLAGS := -L../bcm2835/src
9 INCLUDE := -I../bcm2835/src
10 endif
11  
12 CFLAGS=-O2 -Wstrict-prototypes -Wmissing-prototypes -static $(INCLUDE)
13 CFLAGS=-O3 -funroll-loops -Wstrict-prototypes -Wmissing-prototypes -static $(INCLUDE)
14 SRC := $(wildcard *.c)
15 OBJ := $(patsubst %.c,%.o,$(SRC))
16 LIBS=-lbcm2835
17  
18  
19 #get build dir and date
20 SHELL := /bin/bash
21 VPATH := $(shell basename `pwd`)
22 VDATE := $(shell date)
23  
24 all: $(TARGET)
25  
26 $(TARGET): $(OBJ)
27 $(CC) -static -DBVERSION='"$(VPATH)"' -DBDATE='"$(VDATE)"' -s $(OBJ) -o $@ $(LDFLAGS) $(LIBS)
28  
29 %.o: %.c
30 $(CC) -static -DBVERSION='"$(VPATH)"' -DBDATE='"$(VDATE)"' $(CFLAGS) -c $< -o $@
31  
32 clean:
33 rm -f $(TARGET) *.o *~
34  
35