#############################################################################
# Makefile for building kunit
# Generated by tmake at 21:40, 2001/05/29
#     Project: kunit
#    Template: app
#############################################################################

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

CC	=	gcc
CXX	=	g++
CFLAGS	=	-Wall -W -O2
CXXFLAGS=	-Wall -W -O2
INCPATH	=	-I$(QTDIR)/include
LINK	=	g++
LFLAGS	=	
LIBS	=	$(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
MOC	=	$(QTDIR)/bin/moc
UIC	=	$(QTDIR)/bin/uic

TAR	=	tar -cf
GZIP	=	gzip -9f

####### Files

HEADERS =	main_widget.h
SOURCES =	acceleration.cpp \
		angle_accel.cpp \
		angle.cpp \
		angle_vel.cpp \
		area.cpp \
		bits.cpp \
		capacitance.cpp \
		charge.cpp \
		colors.cpp \
		current.cpp \
		energy.cpp \
		force.cpp \
		illuminance.cpp \
		inductance.cpp \
		length.cpp \
		luminance.cpp \
		mag_flux.cpp \
		main.cpp \
		main_widget.cpp \
		main_widgetdata.cpp \
		mass.cpp \
		power.cpp \
		pressure.cpp \
		shoe_sizes.cpp \
		si_prefixes.cpp \
		spec_heat.cpp \
		temperature.cpp \
		therm_cond.cpp \
		time.cpp \
		torque.cpp \
		velocity.cpp \
		visc_dyn.cpp \
		visc_kin.cpp \
		voltage.cpp \
		volume.cpp
OBJECTS =	acceleration.o \
		angle_accel.o \
		angle.o \
		angle_vel.o \
		area.o \
		bits.o \
		capacitance.o \
		charge.o \
		colors.o \
		current.o \
		energy.o \
		force.o \
		illuminance.o \
		inductance.o \
		length.o \
		luminance.o \
		mag_flux.o \
		main.o \
		main_widget.o \
		main_widgetdata.o \
		mass.o \
		power.o \
		pressure.o \
		shoe_sizes.o \
		si_prefixes.o \
		spec_heat.o \
		temperature.o \
		therm_cond.o \
		time.o \
		torque.o \
		velocity.o \
		visc_dyn.o \
		visc_kin.o \
		voltage.o \
		volume.o
INTERFACES =	
UICDECLS =	
UICIMPLS =	
SRCMOC	=	moc_main_widget.cpp
OBJMOC	=	moc_main_widget.o
DIST	=	
TARGET	=	kunit
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: kunit.pro
	tmake kunit.pro -o Makefile

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

install:
	install kunit /usr/local/bin
	install -d /usr/share/doc/en/HTML/kunit/
	install docs/* /usr/share/doc/en/HTML/kunit/

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

####### Sub-libraries


###### Combined headers


####### Compile

acceleration.o: acceleration.cpp \
		main_widget.h

angle_accel.o: angle_accel.cpp \
		main_widget.h

angle.o: angle.cpp \
		main_widget.h

angle_vel.o: angle_vel.cpp \
		main_widget.h

area.o: area.cpp \
		main_widget.h

bits.o: bits.cpp \
		main_widget.h

capacitance.o: capacitance.cpp \
		main_widget.h

charge.o: charge.cpp \
		main_widget.h

colors.o: colors.cpp \
		main_widget.h

current.o: current.cpp \
		main_widget.h

energy.o: energy.cpp \
		main_widget.h

force.o: force.cpp \
		main_widget.h

illuminance.o: illuminance.cpp \
		main_widget.h

inductance.o: inductance.cpp \
		main_widget.h

length.o: length.cpp \
		main_widget.h

luminance.o: luminance.cpp \
		main_widget.h

mag_flux.o: mag_flux.cpp \
		main_widget.h

main.o: main.cpp \
		main_widget.h

main_widget.o: main_widget.cpp \
		main_widget.h

main_widgetdata.o: main_widgetdata.cpp \
		main_widget.h

mass.o: mass.cpp \
		main_widget.h

power.o: power.cpp \
		main_widget.h

pressure.o: pressure.cpp \
		main_widget.h

shoe_sizes.o: shoe_sizes.cpp \
		main_widget.h

si_prefixes.o: si_prefixes.cpp \
		main_widget.h

spec_heat.o: spec_heat.cpp \
		main_widget.h

temperature.o: temperature.cpp \
		main_widget.h

therm_cond.o: therm_cond.cpp \
		main_widget.h

time.o: time.cpp \
		main_widget.h

torque.o: torque.cpp \
		main_widget.h

velocity.o: velocity.cpp \
		main_widget.h

visc_dyn.o: visc_dyn.cpp \
		main_widget.h

visc_kin.o: visc_kin.cpp \
		main_widget.h

voltage.o: voltage.cpp \
		main_widget.h

volume.o: volume.cpp \
		main_widget.h

moc_main_widget.o: moc_main_widget.cpp \
		main_widget.h

moc_main_widget.cpp: main_widget.h
	$(MOC) main_widget.h -o moc_main_widget.cpp

