#############################################################################
# Makefile for building resistorUI
# Generated by tmake at 11:41, 2002/11/08
#     Project: resistorUI
#    Template: app
#############################################################################

####### Compiler, tools and options

CC	=	arm-linux-gcc
CXX	=	arm-linux-g++
CFLAGS	=	-pipe -Wall -W -O2 -DNO_DEBUG
CXXFLAGS=	-pipe -DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG
INCPATH	=	-I../../qpe-1.4.0/library -I$(QTDIR)/include
LINK	=	arm-linux-gcc
LFLAGS	=	
LIBS	=	$(SUBLIBS) -L$(QTDIR)/lib -lqpe -lqte
MOC	=	$(QTDIR)/bin/moc
UIC	=	$(QTDIR)/bin/uic

TAR	=	tar -cf
GZIP	=	gzip -9f

####### Files

HEADERS =	qtresistor.h
SOURCES =	main.cpp \
		qtresistor.cpp
OBJECTS =	main.o \
		qtresistor.o \
		mainwin.o
INTERFACES =	mainwin.ui
UICDECLS =	mainwin.h
UICIMPLS =	mainwin.cpp
SRCMOC	=	moc_qtresistor.cpp \
		moc_mainwin.cpp
OBJMOC	=	moc_qtresistor.o \
		moc_mainwin.o
DIST	=	
TARGET	=	resistorUI
INTERFACE_DECL_PATH = .

####### Implicit rules

.SUFFIXES: .cpp .cxx .cc .C .c

.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules


all: $(TARGET)

$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) 
	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake: Makefile

Makefile: resistorUI.pro
	tmake resistorUI.pro -o Makefile

dist:
	$(TAR) resistorUI.tar resistorUI.pro $(SOURCES) $(HEADERS) $(INTERFACES) $(DIST)
	$(GZIP) resistorUI.tar

clean:
	-rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET)
	-rm -f *~ core

####### Sub-libraries


###### Combined headers


####### Compile

main.o: main.cpp \
		qtresistor.h \
		mainwin.h

qtresistor.o: qtresistor.cpp \
		qtresistor.h \
		mainwin.h

mainwin.h: mainwin.ui
	$(UIC) mainwin.ui -o $(INTERFACE_DECL_PATH)/mainwin.h

mainwin.cpp: mainwin.ui
	$(UIC) mainwin.ui -i mainwin.h -o mainwin.cpp

mainwin.o: mainwin.cpp \
		mainwin.h \
		mainwin.ui

moc_qtresistor.o: moc_qtresistor.cpp \
		qtresistor.h \
		mainwin.h

moc_mainwin.o: moc_mainwin.cpp \
		mainwin.h

moc_qtresistor.cpp: qtresistor.h
	$(MOC) qtresistor.h -o moc_qtresistor.cpp

moc_mainwin.cpp: mainwin.h
	$(MOC) mainwin.h -o moc_mainwin.cpp

