## ## File : Makefile.am ## Author : Robert Chalmers ## ## Original : October 13, 1999 ## Revised : February 26, 2000 ## ## Content : Project Makefile template used my automake. ## This provides targets to build the project ## source. ## EXTRA_DIST = $(s_chk) # sources s_core := inspector.c routines.c cmdLine.c benchmark.c zone.c cfgParser.c access.c genCode.c s_bm := cacheSize.c cacheShare.c cacheLine.c cacheAssoc.c cacheReplace.c cacheWrite.c tlbPage.c tlbAssoc.c tlbEntries.c s_dbg := dbgCode.c genCode.c s_chk := chkCode.c # headers h_core := mob.h cmdLine.h benchmark.h zone.h cfgParser.h routines.h genCode.h h_bm := h_mach := i386.h sparc.h mips.h alpha.h ## targets for main mob inspector bin_PROGRAMS = inspector inspector_SOURCES = $(s_core) $(s_bm) ## targets to build code generation debugger when debugging is enabled EXTRA_PROGRAMS = dbgCode noinst_PROGRAMS = @P_DEBUGS@ dbgCode_SOURCES = $(s_dbg) # target for building assembling code check fragment .PHONY: chkCode chkCode: chkCode.s chkCode.s: $(s_chk) $(COMPILE) -S $(s_chk) ## extra clean commands clean-local: $(RM) *.s $(srcdir)/*~ $(srcdir)/inc/*~ $(srcdir)/inc/machine/*~ ## remove the machine dependent header for distclean distclean-local: $(RM) inc/machdep.h ## copy headers for distribution dist-hook: $(mkinstalldirs) $(distdir)/inc/machine for f in $(h_core) $(h_bm); do \ cp -p $(srcdir)/inc/$$f $(distdir)/inc; \ done for f in $(h_mach); do \ cp -p $(srcdir)/inc/machine/$$f $(distdir)/inc/machine; \ done