make uart_pty threadsafe
[simavr] / Makefile
1 # Makefile
2
3 # Normal build will link against the shared library for simavr
4 # in the current build tree, so you don't have to 'install' to
5 # run simavr or the examples.
6 #
7 # For package building, you will need to pass RELEASE=1 to make
8 RELEASE ?= 0
9
10 .PHONY: doc
11
12 all:    build-simavr build-tests build-examples
13
14 build-simavr:
15         $(MAKE) -C simavr RELEASE=$(RELEASE)
16
17 build-tests: build-simavr
18         $(MAKE) -C tests RELEASE=$(RELEASE)
19
20 build-examples: build-simavr
21         $(MAKE) -C examples RELEASE=$(RELEASE)
22
23 install:
24         $(MAKE) -C simavr install RELEASE=$(RELEASE)
25
26 doc:
27         $(MAKE) -C doc RELEASE=$(RELEASE)
28
29 clean:
30         $(MAKE) -C simavr clean
31         $(MAKE) -C tests clean
32         $(MAKE) -C examples clean
33         $(MAKE) -C doc clean
34