CFLAGS += -g --std=gnu99 -Wall
CFLAGS += ${patsubst %,-I%,${subst :, ,${IPATH}}}
-LDFLAGS += -lelf
ifeq (${shell uname}, Darwin)
AVR_ROOT := "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/"
LIBDIR = ${shell pwd}/${SIMAVR}/${OBJ}
LDFLAGS += -L${LIBDIR} -lsimavr
+LDFLAGS += -lelf
+
ifeq (${shell uname}, Linux)
# allow the shared library to be found in the build directory
LFLAGS += -Wl,-rpath,${LIBDIR}
Description: Atmel(tm) AVR 8 bits simulator
Version: VERSION
Cflags: -I${includedir}
-Libs: -L${libdir} -lsimavr
+Libs: -L${libdir} -lsimavr -lelf
simavr-avr.pc:
prefix=PREFIX
Cflags: -I${includedir}/avr -ffunction-sections -fdata-sections \
-Wl,--relax,--gc-sections \
-Wl,--undefined=_mmcu,--section-start=.mmcu=0x910000
-Libs: -L${libdir} -lsimavr
+Libs: