#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
# File: Makefile
|
# File: Makefile
|
# Author: David Burnette
|
# Author: David Burnette
|
# Date: April 7, 2008
|
# Date: April 7, 2008
|
#
|
#
|
# Description:
|
# Description:
|
# This makefile fragment defines common commands used by the
|
# This makefile fragment defines common commands used by the
|
# the makefiles. Vendor-specific tools should be defined in
|
# the makefiles. Vendor-specific tools should be defined in
|
# the vendor-specific makefiles.
|
# the vendor-specific makefiles.
|
#
|
#
|
# Usage:
|
# Usage:
|
# This make file fragment should be included by the
|
# This make file fragment should be included by the
|
# makefiles in the 'rtl' and 'src/...' directories.
|
# makefiles in the 'rtl' and 'src/...' directories.
|
#
|
#
|
# Dependencies:
|
# Dependencies:
|
# None
|
# None
|
#
|
#
|
# Revision History:
|
# Revision History:
|
# dgb 2008-04-07 Original version
|
# dgb 2008-04-07 Original version
|
#
|
#
|
#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
|
|
#===================================================================
|
#===================================================================
|
|
|
# DOS version of Unix-ish tools
|
# DOS version of Unix-ish tools
|
CD := cd
|
CD := cd
|
CP := cp
|
CP := cp
|
CAT := cat
|
CAT := cat
|
ECHO := echo
|
ECHO := echo
|
AWK := awk
|
AWK := awk
|
SED := sed
|
SED := sed
|
GREP := grep
|
GREP := grep
|
#RM := erase /s /q
|
#RM := erase /s /q
|
RM := rm -f
|
RM := rm -f
|
#RMDIR := rmdir /s /q
|
#RMDIR := rmdir /s /q
|
RMDIR := rm -rf
|
RMDIR := rm -rf
|
MKDIR := mkdir
|
MKDIR := mkdir
|
|
|
|
# Define default application extension
|
|
MY_OS := $(shell uname -s)
|
|
ifeq "$(findstring CYGWIN_NT,$(MY_OS))" "CYGWIN_NT"
|
|
EXE_EXT := .exe
|
|
else
|
|
EXE_EXT :=
|
|
endif
|
|
|
# 6809 Assembler
|
# 6809 Assembler
|
ASM := ../../Tools/as09/AS09.exe
|
ASM := ../../Tools/as09/as09$(EXE_EXT)
|
|
|
# Generate Xilinx block ram initialized with ROM contents
|
# Generate Xilinx block ram initialized with ROM contents
|
s19tovhd := ../../Tools/s19tovhd/S19toVHD.exe
|
s19tovhd := ../../Tools/s19tovhd/S19toVHD$(EXE_EXT)
|
|
|
|
|