forked from paullric/tempestmodel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (23 loc) · 725 Bytes
/
Makefile
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
# Copyright (c) 2016 Bryce Adelstein-Lelbach aka wash
# Copyright (c) 2000-2016 Paul Ullrich
#
# 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)
BUILD_TARGETS= src/base src/atm test
CLEAN_TARGETS= $(addsuffix .clean,$(BUILD_TARGETS))
ifeq ($(SPEX), 1)
MAKEFLAGS+= SPEX=1
endif
.PHONY: all clean $(BUILD_TARGETS) $(CLEAN_TARGETS)
# Build rules.
all: $(BUILD_TARGETS)
lib/libtempestbase.a: src/base
lib/libhardcoreatm.a: src/atm
test: src/base src/atm
$(BUILD_TARGETS): %:
cd $*; $(MAKE) $(MAKEFLAGS)
# Clean rules.
clean: $(CLEAN_TARGETS)
$(CLEAN_TARGETS): %.clean:
cd $*; $(MAKE) clean
# DO NOT DELETE