updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / simavr-git / makefile.patch
blobf72d0c678da2ff0515545879a6f7b4432c092646
1 diff --git a/Makefile b/Makefile
2 index 75fd39c..a39e94a 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -1,7 +1,7 @@
6 -all: make-simavr make-tests
7 +all: make-simavr
9 make-simavr:
10 - make -C simavr && make -C examples
11 + make -C simavr
13 make-tests:
14 make -C tests
15 diff --git a/Makefile.common b/Makefile.common
16 index bc8e3ba..9bfebc1 100644
17 --- a/Makefile.common
18 +++ b/Makefile.common
19 @@ -33,7 +33,7 @@ ifeq ($(ARCH), i)
20 CFLAGS += -mfpmath=sse -msse2
21 endif
23 -CFLAGS += -g --std=gnu99
24 +CFLAGS += -fPIC -g --std=gnu99
25 CFLAGS += ${patsubst %,-I%,${subst :, ,${IPATH}}}
26 LDFLAGS += -lelf
28 @@ -43,7 +43,7 @@ AVR_INC := ${AVR_ROOT}/avr-4/
29 AVR := ${AVR_ROOT}/bin/avr-
30 LFLAGS += -L/opt/local/lib
31 else
32 -AVR_ROOT := /usr/lib/avr
33 +AVR_ROOT := /usr/avr
34 AVR_INC := ${AVR_ROOT}
35 AVR := avr-
36 CFLAGS += -fPIC
37 diff --git a/simavr/Makefile b/simavr/Makefile
38 index 4e57f89..fad9a12 100644
39 --- a/simavr/Makefile
40 +++ b/simavr/Makefile
41 @@ -18,7 +18,7 @@
43 target = run_avr
45 -CFLAGS += -O3 -Wall -Werror
46 +CFLAGS += -fPIC -O3 -Wall -Werror
48 # tracing id useful especialy if you develop simavr core.
49 # it otherwise eat quite a bit of few cycles, even disabled