forked from wovo/hwlib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile.link
39 lines (31 loc) · 1.03 KB
/
makefile.link
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
#============================================================================
#
# makefile that includes the dependencies and defers to bmptk
#
# (c) Wouter van Ooijen (wouter@voti.nl) 2017
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
#============================================================================
# default relative path
RELATIVE ?= .
# get the paths
HWLIB := $(RELATIVE)
$(info HWLIB=$(HWLIB) )
ifneq ($(wildcard $(RELATIVE)/makefile.custom),)
include $(RELATIVE)/makefile.custom
else ifneq ($(wildcard $(RELATIVE)/../makefile.custom),)
include $(RELATIVE)/../makefile.custom
else
include $(RELATIVE)/makefile.local
endif
# add hwlib itself
include $(HWLIB)/makefile.inc
# add Catch
SEARCH += $(CATCH)/include
# set BMPTK to the bmptk subdirectory
BMPTK ?= $(HWLIB)/../bmptk
# defer to the bmptk makefile.inc
include $(BMPTK)/makefile.inc