From 36cf1b75286f0e04f47b3af5e2355ad208f77e4e Mon Sep 17 00:00:00 2001 From: "Clifford T. Matthews" Date: Sat, 5 Dec 2009 15:34:57 -0700 Subject: [PATCH] make distcheck works. --- .gitignore | 4 ++++ Makefile.am | 2 ++ profile/Makefile.am | 15 +++++++++++++-- runtime/Makefile.am | 32 ++++++++++++++++++++++++++++++++ syngen/Makefile.am | 8 +++++++- test/Makefile.am | 15 ++++++++++----- 6 files changed, 68 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 09930e7..5713669 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,7 @@ missing config.h config.h.in stamp-h1 +libtool +ltmain.sh +m4 +syn68k-*.tar.gz diff --git a/Makefile.am b/Makefile.am index 788eb77..4a26bb9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,5 @@ # $Id: Makefile.am 61 2004-12-21 23:44:50Z ctm $ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = syngen runtime test profile + +DIST_SOURCES = include/safe_alloca.h include/syn68k_public.h diff --git a/profile/Makefile.am b/profile/Makefile.am index 3011950..61dae6f 100644 --- a/profile/Makefile.am +++ b/profile/Makefile.am @@ -2,9 +2,17 @@ CC=@CC_FOR_BUILD@ noinst_PROGRAMS = makebucket profile EXEEXT = -profile_SOURCES = bucket.c main.c readprofile.c amode.c frequency.c +BUILT_SOURCES = bucket.c + +profile_SOURCES = main.c readprofile.c amode.c frequency.c \ + include/amode.h include/bucket.h \ + include/frequency.h include/readprofile.h + +nodist_profile_SOURCES = bucket.c + +makebucket_SOURCES = makebucket.c amode.c \ + include/amode.h include/bucket.h -makebucket_SOURCES = makebucket.c amode.c AM_CFLAGS = -g -Wall -I$(srcdir)/include -I$(srcdir)/../include @@ -13,3 +21,6 @@ all: bucket.c: makebucket ../runtime/profileinfo.gz ./makebucket ../runtime/profileinfo.gz > bucket.c + +clean-local: + -rm -f bucket.c diff --git a/runtime/Makefile.am b/runtime/Makefile.am index 3e47d74..0b34f83 100644 --- a/runtime/Makefile.am +++ b/runtime/Makefile.am @@ -26,6 +26,34 @@ dce_fixup=@dce_fixup@ AM_CFLAGS = -DRUNTIME +DIST_SOURCES = 68k.defines.scm 68k.scm alloc.c backpatch.c block.c \ + blockinfo.c callback.c checksum.c deathqueue.c destroyblock.c \ + diagnostics.c dosinterrupts.c fold.pl hash.c i486-cleanup.pl \ + i486-optimize.pl init.c interrupt.c native.c opcode_dummy.c \ + profile.c rangetree.c recompile.c reg sched.pl syn68k_header.c \ + translate.c trap.c x86_recog.pl \ +\ + include/alloc.h \ + include/backpatch.h include/block.h include/blockinfo.h \ + include/callback.h include/ccfuncs.h include/checksum.h \ + include/deathqueue.h include/destroyblock.h \ + include/diagnostics.h include/hash.h include/interrupt.h \ + include/mapping.h include/native.h include/profile.h \ + include/rangetree.h include/recompile.h include/translate.h \ + include/trap.h \ +\ + native/i386/analyze.c native/i386/host-native.c \ + native/i386/host-native.h native/i386/i386-aux.c \ + native/i386/i386-aux.h native/i386/main.c \ + native/i386/process.c native/i386/process.h \ + native/i386/template.c native/i386/template.h \ + native/i386/xlate-aux.c native/i386/xlate-aux.h \ + native/i386/xlate.c native/i386/xlate.h \ + native/i386/xlatemain.c native/i386/xlatetable.c \ +\ + native/null/Makefile native/null/host-native.h \ + native/null/host-xlate.h + LOCAL_INCLUDES = LOCAL_INCLUDES += -I$(srcdir)/include \ @@ -98,3 +126,7 @@ syn68k.c mapindex.c mapinfo.c profileinfo.gz: ../syngen/syngen syn68k_header.c 6 fi ../syngen/syngen -v 68k.scm gzip -1f profileinfo + +clean-local: + -rm -rf native 68k.defines.scm 68k.scm mapinfo.c syn68k.c mapindex.c \ + profileinfo.gz syn68k_header.c bucket.c diff --git a/syngen/Makefile.am b/syngen/Makefile.am index cb8854d..ca4e675 100644 --- a/syngen/Makefile.am +++ b/syngen/Makefile.am @@ -5,7 +5,13 @@ syngen_CPPFLAGS = -DSYNGEN syngen_SOURCES = main.c token.c hash.c parse.c list.c reduce.c macro.c \ boolean.c error.c defopcode.c bitstring.c generatecode.c \ - uniquestring.c byteorder.c + uniquestring.c byteorder.c \ +\ + include/boolean.h include/error.h include/reduce.h include/parse.h \ + include/bitstring.h include/uniquestring.h include/hash.h \ + include/byteorder.h include/tokenlist.h include/common.h \ + include/macro.h include/generatecode.h include/list.h include/token.h \ + include/defopcode.h INCLUDES = -I$(srcdir)/include -I$(srcdir)/../include -I../include diff --git a/test/Makefile.am b/test/Makefile.am index 18c2aaf..2697b67 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -2,12 +2,17 @@ noinst_PROGRAMS = syngentest syngentest_CPPFLAGS = -DMEMORY_OFFSET=8192 + syngentest_SOURCES = main.c driver.c tests.c setup.c \ + testtrap.c crc.c testrt.c testqsort.c \ +\ + include/callemulator.h include/crc.h include/driver.h \ + include/run68k.h include/setup.h include/testbattery.h \ + include/testqsort.h include/testrt.h include/testtrap.h \ +\ + maketestbattery.pl testall.sh + if M68K_HOSTCPU - syngentest_SOURCES = main.c driver.c tests.c setup.c \ - testtrap.c callemulator.s run68k.s crc.c testrt.c testqsort.c -else - syngentest_SOURCES = main.c driver.c tests.c setup.c \ - testtrap.c crc.c testrt.c testqsort.c + syngentest_SOURCES += callemulator.s run68k.s endif nodist_syngentest_SOURCES = testbattery.c