#
# makefile for the c30 simulator assembler library which is part of
# the freely distributable C30 simulator package
#
# Copyright (c) 1996-1998 The University of Texas
# All Rights Reserved.
# 
# Authors: Chi Duong, Brian Evans, and Chris Moy
# Version: @(#)make.template	1.10	01/19/98
# 
# Department of Electrical and Computer Engineering
# The University of Texas, Austin, TX 78712-1084

# Root of Ptolemy directory
ROOT=../..
# Where we are
VPATH = ../../src/libc30asm
# get configuration info
CONFIG=$(ROOT)/mk/config-$(PTARCH).mk
include $(CONFIG)

# Turn on the simulator flag
USERFLAGS = -DUTSIM3X
 
# Library name
# Build a non-shared libptolemy.a for faster startup time
# It would be nice if we built both
LIBNONSHARED=libc30asm.a

# Put the simulator library directory in the include path
INCL = -I$(ROOT)/src/libc30sim
 
# Source files owned by Texas Instruments 
TISRCS = \
argsplit.cc \
asciinum.cc \
asmc40.cc \
assm_fun.cc \
assm_globals.cc \
errormsg.cc \
exp_anal.cc \
opcodes1.cc \
opcodes2.cc \
symbols.cc \
tmsfloat.cc

TIHDRS = \
argsplit.h \
assm_fun.h \
dsk.h \
errormsg.h \
exp_anal.h \
opcodes.h \
symbols.h \
tmsfloat.h \
typedefs.h

# Source files owned by The University of Texas
UTSRCS = \
assmc30.cc \
asupport.cc

UTHDRS = \
asupport.h

# The complete list of .cc files used in the library
SRCS = \
$(TISRCS) \
$(UTSRCS)

# Header files.
HDRS = \
$(TIHDRS) \
$(UTHDRS)

# Library objects
OBJS = $(SRCS:.cc=.o)

EXTRA_SRCS = README

all:	makefile $(LIBNONSHARED)

# "make install" puts things in the official place
install:	makefile $(LIBDIR)/$(LIBNONSHARED)

# Include common make definitions
include $(ROOT)/mk/common.mk

# Don't add anything after the next line; makedepend will zap it.
# DO NOT DELETE THIS LINE -- make depend depends on it.

argsplit.o: argsplit.cc argsplit.h assm_fun.h typedefs.h errormsg.h \
 asupport.h symbols.h
asciinum.o: asciinum.cc typedefs.h assm_fun.h errormsg.h asupport.h \
 argsplit.h symbols.h
asmc40.o: asmc40.cc opcodes.h typedefs.h assm_fun.h errormsg.h \
 asupport.h ../../src/libc30sim/sim3x.h ../../src/libc30sim/state.h \
 ../../src/libc30sim/pipeline.h ../../src/libc30sim/execute.h \
 tmsfloat.h exp_anal.h symbols.h argsplit.h
assm_fun.o: assm_fun.cc opcodes.h typedefs.h assm_fun.h errormsg.h \
 asupport.h ../../src/libc30sim/sim3x.h ../../src/libc30sim/state.h \
 ../../src/libc30sim/pipeline.h ../../src/libc30sim/execute.h \
 tmsfloat.h symbols.h exp_anal.h argsplit.h
assm_globals.o: assm_globals.cc opcodes.h typedefs.h assm_fun.h \
 errormsg.h asupport.h ../../src/libc30sim/sim3x.h \
 ../../src/libc30sim/state.h ../../src/libc30sim/pipeline.h \
 ../../src/libc30sim/execute.h
errormsg.o: errormsg.cc errormsg.h
exp_anal.o: exp_anal.cc assm_fun.h typedefs.h errormsg.h asupport.h \
 tmsfloat.h symbols.h argsplit.h
opcodes1.o: opcodes1.cc assm_fun.h typedefs.h errormsg.h asupport.h
opcodes2.o: opcodes2.cc opcodes.h typedefs.h assm_fun.h errormsg.h \
 asupport.h ../../src/libc30sim/sim3x.h ../../src/libc30sim/state.h \
 ../../src/libc30sim/pipeline.h ../../src/libc30sim/execute.h
symbols.o: symbols.cc symbols.h typedefs.h errormsg.h dsk.h
tmsfloat.o: tmsfloat.cc typedefs.h tmsfloat.h
assmc30.o: assmc30.cc assm_fun.h typedefs.h errormsg.h asupport.h \
 symbols.h argsplit.h opcodes.h ../../src/libc30sim/sim3x.h \
 ../../src/libc30sim/state.h ../../src/libc30sim/pipeline.h \
 ../../src/libc30sim/execute.h tmsfloat.h
asupport.o: asupport.cc asupport.h errormsg.h
