#
# $Id: Makefile.in,v 1.10 2003/11/12 23:26:21 markus Exp $
#

OBJOUT	 = -o 
INCPATH  = -I../interpreter
LD       = $(CC)
CXXFLAGS = -I/usr/local/include/X11/qt3
CFLAGS   = -pipe -Wall -ansi -O2 -DDEBUG $(CXXFLAGS) -pthread
MOC      = /usr/local/bin/moc
LIBS     = -L/usr/local/lib -L/usr/X11R6/lib -L \
	-L/usr/local/lib -lqt-mt  -lSM -lICE  -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi  -pthread -lm -lstdc++ -pthread
RM       = rm -rf

OBJS     = MainForm.o MainForm_moc.o main.o QMemoryTable.o QMemoryTable_moc.o \
	QMemoryPane.o QMemoryPane_moc.o \
	QHexIntValidator.o QHexLineEdit.o QHexLineEdit_moc.o \
	QDecIntValidator.o QDisassemblerPane.o QDisassemblerPane_moc.o \
	QDebugPane.o QDebugPane_moc.o QDialogAddress_moc.o QDialogAddress.o \
	Options.o Options_moc.o QAssemblerOut.o QAssemblerOut_moc.o \
	QAboutDialog.o QAboutDialog_moc.o QHelpWindow.o QHelpWindow_moc.o \
	QStackTable.o QStackTable_moc.o
INTERPRETER_OBJS = ../interpreter/Memory.o ../interpreter/MemoryChain.o \
	../interpreter/RAM.o ../interpreter/CPU.o ../interpreter/Error.o \
	../interpreter/Decoder.o ../interpreter/ObjectFile.o \
	../interpreter/IOTtyOut.o
MOCS     = MainForm_moc.cpp QMemoryTable_moc.cpp QMemoryPane_moc.cpp \
	QHexLineEdit_moc.cpp QDisassemblerPane_moc.cpp QDebugPane_moc.cpp \
	QDialogAddress_moc.cpp Options_moc.cpp QAssemblerOut_moc.cpp \
	QAboutDialog_moc.cpp QHelpWindow_moc.cpp QStackTable_moc.cpp
TARGET   = hasi

####### Build rules

all: interpreter $(TARGET) 

interpreter:
	cd ../interpreter && if test ! -f Makefile ; then ./configure ; fi && $(MAKE) gui-part

clean: 
	$(RM) $(OBJS) $(MOCS) *~ semantic.cache *.core $(TARGET)
	cd ../interpreter && $(MAKE) clean

distclean: clean
	$(RM) Makefile config.log config.status autom4te.cache

$(TARGET): $(OBJS) $(INTERPRETER_OBJS)
	$(LD) $(LDFLAGS) -o $(TARGET) $(OBJS) $(INTERPRETER_OBJS) $(LIBS)

include Makefile.inc



