-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile.include
46 lines (35 loc) · 916 Bytes
/
Makefile.include
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
#
# Sets some default variables that are also usable in depending projects.
#
# The variables are document in \ref Makefile.
#
# Build with SDCC.
BUILDDIR= bin.sdcc
CC= sdcc
CFLAGS= -I${INCDIR} -I${GENDIR}
# Sane default for uVisionupdate.sh.
CPP= cpp
# AWK interpreter.
AWK?= awk
# Configuration files.
CONFDIR= conf
# Generateded headers.
GENDIR= gen
DBCDIR= ${GENDIR}/dbc
# Locate related projects.
CANPROJDIR= ../CAN
# Include directories from the related projects.
INCDIR= inc
# File name suffixes for sdcc/XC800_Fload.
OBJSUFX= .rel
HEXSUFX= .hex
# The system date format.
DATE:= $(shell date +%Y-%m-%d)
DATE!= date +%Y-%m-%d
# Use hg version with date fallback.
VERSION:= $(shell git rev-list HEAD --count || echo ${DATE})
VERSION!= git rev-list HEAD --count || echo ${DATE}
# Name of this project.
PROJECT:= $(shell pwd | xargs basename)
PROJECT!= pwd | xargs basename