#
# linux makefile generics
#

DSOLDFLAGS = -shared
DSOPRE     = lib
DSOPOST    = .so
DSORPATH   = -Wl,-rpath,${LIBDIR}
DSOSONAME  = -Wl,-soname,

include arch/install.inc

# linux os specific install files
install-arch: install-check
	@${install} -m 0755 -d \
		${DESTDIR}${SHAREDIR} \
		${DESTDIR}${SHAREDIR}/icons \
		${DESTDIR}${SHAREDIR}/applications && \
	 ${install} -m 0644 contrib/icons/quantump.png \
		${DESTDIR}${SHAREDIR}/icons/megazeux.png && \
	 ${install} -m 0644 arch/unix/megazeux.desktop \
		${DESTDIR}${SHAREDIR}/applications/megazeux.desktop
ifeq (${BUILD_MZXRUN},1)
	@${install} -m 0644 arch/unix/mzxrun.desktop \
		${DESTDIR}${SHAREDIR}/applications/mzxrun.desktop
endif

# linux os specific install files
uninstall-arch: install-check
	@${RM} -f \
		${DESTDIR}${SHAREDIR}/icons/megazeux.png \
		${DESTDIR}${SHAREDIR}/applications/megazeux.desktop
ifeq (${BUILD_MZXRUN},1)
	@${RM} -f \
		${DESTDIR}${SHAREDIR}/applications/mzxrun.desktop
endif
