-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.inc
69 lines (52 loc) · 1.55 KB
/
makefile.inc
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# makefile.inc (RPiSousVide)
# This file contains all of the environment definitions
# common to each of the makefiles within the project.
#
# Include directories that are not already on the path
# DO NOT include the -I prefix to these paths - it will
# be added automatically
INCDIRS_TEMP = \
/usr/local/include \
$(CURDIR)/src \
$(CURDIR)/src/utilities \
$(RPI)/include
INCDIRS = $(addprefix -I,$(INCDIRS_TEMP))
# Library directories that are not already on the path
# DO NOT include the -L prefix to these paths - it will
# be added automatically
LIBDIRS_TEMP = \
$(RPI)/lib
LIBDIRS = $(addprefix -L,$(LIBDIRS_TEMP))
# Libraries to link against
# DO NOT include the -l prefix to these libraries - it
# will be added automatically
LIBS_TEMP = \
pthread \
wiringPi \
rt
LIBS = $(addprefix -l,$(LIBS_TEMP))
# Static libraries to be build before the executable
# MUST be listed in order of dependence (i.e. first
# library must not be needed by other libraries and
# it must need information contained in the following
# libraries).
PSLIB = \
# Compiler to use
CC = arm-unknown-linux-gnueabi-g++
# Archiver to use
AR = arm-unknown-linux-gnueabi-ar rcs
RANLIB = arm-unknown-linux-gnueabi-ranlib
# Compiler flags
CFLAGS = -g -Wall -Wextra -Werror -pedantic $(INCDIRS)
# Linker flags
LDFLAGS = $(LIBDIRS) $(LIBS)
# Object file output directory
OBJDIR = $(CURDIR)/.obj/
# Binary file output directory
BINDIR = $(CURDIR)/bin/
# Library output directory
LIBOUTDIR = $(CURDIR)/.lib/
# Method for creating directories
MKDIR = mkdir -p
# Method for removing files
RM = rm -f