#############################################################################
# Makefile for building widgets
# Generated by tmake at 18:02, 1999/02/26
#     Project: widgets
#    Template: app
#############################################################################

####### System-dependendant options

####### BEGIN
build_error:
	@echo "This section should have been replaced by a config file."
####### END

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

CXX	=	$(SYSCONF_CXX)
CXXFLAGS=	$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS)
LFLAGS	=	$(SYSCONF_LFLAGS_QT) $(SYSCONF_LFLAGS_X11) $(SYSCONF_LFLAGS)
LIBS	=	$(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_X11) $(SYSCONF_LIBS)
MOC	=	$(SYSCONF_MOC)

####### Target

TARGET	= widgets
DESTDIR = ./
VER_MAJ = 1
VER_MIN = 0

####### Files

HEADERS =	../aclock/aclock.h \
		../dclock/dclock.h
SOURCES =	widgets.cpp \
		../aclock/aclock.cpp \
		../dclock/dclock.cpp
OBJECTS =	widgets.o \
		../aclock/aclock.o \
		../dclock/dclock.o
SRCMOC	=	../aclock/moc_aclock.cpp \
		../dclock/moc_dclock.cpp \
		widgets.moc
OBJMOC	=	../aclock/moc_aclock.o \
		../dclock/moc_dclock.o

####### 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:
	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

####### Build rules

all: $(DESTDIR)$(TARGET)

$(DESTDIR)$(TARGET): $(OBJECTS) $(OBJMOC) 
	$(SYSCONF_LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)

moc: $(SRCMOC)

tmake:
	tmake widgets.pro

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

####### Compile

widgets.o: widgets.cpp \
		widgets.moc \
		../aclock/aclock.h \
		../dclock/dclock.h

../aclock/aclock.o: ../aclock/aclock.cpp \
		../aclock/aclock.h

../dclock/dclock.o: ../dclock/dclock.cpp \
		../dclock/dclock.h

../aclock/moc_aclock.o: ../aclock/moc_aclock.cpp \
		../aclock/aclock.h

../dclock/moc_dclock.o: ../dclock/moc_dclock.cpp \
		../dclock/dclock.h

../aclock/moc_aclock.cpp: ../aclock/aclock.h
	$(MOC) ../aclock/aclock.h -o ../aclock/moc_aclock.cpp

../dclock/moc_dclock.cpp: ../dclock/dclock.h
	$(MOC) ../dclock/dclock.h -o ../dclock/moc_dclock.cpp

widgets.moc: widgets.cpp
	$(MOC) widgets.cpp -o widgets.moc

