--- np2/x11/Makefile.am 2011/12/16 10:42:23 1.2 +++ np2/x11/Makefile.am 2012/01/24 17:58:08 1.12 @@ -1,10 +1,9 @@ -# $Id: Makefile.am,v 1.2 2011/12/16 10:42:23 monaka Exp $ - real_topsrcdir= $(top_srcdir)/.. bin_PROGRAMS= xnp2 -nodist_man1_MANS= xnp2.1 +nodist_man1_MANS= xnp2.1 xnp2.1j +CLEANFILES= $(nodist_man1_MANS) dist_pkgdata_DATA= $(real_topsrcdir)/x11/resources/fddseek.wav \ $(real_topsrcdir)/x11/resources/fddseek1.wav dist_pkgdata_DATA+= $(real_topsrcdir)/np2tool/np2tool.d88 @@ -240,10 +239,13 @@ AM_CPPFLAGS= -I$(real_topsrcdir) \ -I$(real_topsrcdir)/vram \ $(GTK_CFLAGS) $(SDL_CFLAGS) -AM_CFLAGS= -fsigned-char -fno-strict-aliasing +if HAVE_GCC +AM_CFLAGS= -fsigned-char +CFLAGS+= -fno-strict-aliasing +endif xnp2_LDADD= $(GTK_LIBS) $(SDL_LIBS) \ - $(X_PRE_LIBS) $(X_LIBS) $(X_EXTRA_LIBS) + $(X_LIBS) $(X_PRE_LIBS) $(XLIB) $(X_EXTRA_LIBS) DEFS= @DEFS@ -DSYSRESPATH=\""$(pkgdatadir)"\" @@ -284,15 +286,6 @@ AM_CPPFLAGS+= -I$(real_topsrcdir)/i386c -I$(real_topsrcdir)/i386c/ia32 \ -I$(real_topsrcdir)/i386c/ia32/instructions \ -I$(real_topsrcdir)/i386c/ia32/instructions/fpu - -DEFS+= -DCPUCORE_IA32 -##DEFS+= -DUSE_FPU -##DEFS+= -DSUPPORT_MEMDBG32 -##DEFS+= -DIA32_PROFILE_TLB -##DEFS+= -DIA32_INSTRUCTION_TRACE -##DEFS+= -DIA32_CROSS_CHECK -##DEFS+= -DIA32_REBOOT_ON_PANIC -##DEFS+= -DMORE_DEBUG else xnp2_SOURCES+= $(real_topsrcdir)/i286c/i286c.c \ $(real_topsrcdir)/i286c/i286c_mn.c \ @@ -309,3 +302,10 @@ xnp2_SOURCES+= $(real_topsrcdir)/i286c/i AM_CPPFLAGS+= -I$(real_topsrcdir)/i286c endif + +CLEANFILES+= make.log + +cleandir:: distclean + +.man1.1 .jman1.1j: + @sed -e 's;@PKGDATADIR@;${DESTDIR}${pkgdatadir};' < $< > $@