$(MKDIR) $(DESTDIR)/lib
$(INSTALL) ${OBJ}/libsimavr.a $(DESTDIR)/lib/
$(MKDIR) $(DESTDIR)/lib/pkgconfig/
+ sed -e "s|PREFIX|${PREFIX}|g" -e "s|VERSION|${SIMAVR_VERSION}|g" \
+ simavr-avr.pc >$(DESTDIR)/lib/pkgconfig/simavr-avr.pc
sed -e "s|PREFIX|${PREFIX}|g" -e "s|VERSION|${SIMAVR_VERSION}|g" \
simavr.pc >$(DESTDIR)/lib/pkgconfig/simavr.pc
ifeq (${shell uname}, Linux)
--- /dev/null
+prefix=PREFIX
+exec_prefix=${prefix}
+includedir=${prefix}/include
+libdir=${exec_prefix}/lib
+
+Name: simavr-avr
+Description: Atmel(tm) AVR 8 bits simulator - avr-gcc flags
+Version: VERSION
+Cflags: -I${includedir}/avr -ffunction-sections -fdata-sections \
+ -Wl,--relax,--gc-sections \
+ -Wl,--undefined=_mmcu,--section-start=.mmcu=0x910000
+Libs:
+
-simavr.pc:
prefix=PREFIX
exec_prefix=${prefix}
includedir=${prefix}/include
Version: VERSION
Cflags: -I${includedir}
Libs: -L${libdir} -lsimavr -lelf
-
-simavr-avr.pc:
-prefix=PREFIX
-exec_prefix=${prefix}
-includedir=${prefix}/include
-libdir=${exec_prefix}/lib
-
-Name: simavr-avr
-Description: Atmel(tm) AVR 8 bits simulator - avr-gcc flags
-Version: VERSION
-Cflags: -I${includedir}/avr -ffunction-sections -fdata-sections \
- -Wl,--relax,--gc-sections \
- -Wl,--undefined=_mmcu,--section-start=.mmcu=0x910000
-Libs:
-