#############################################################################
# Makefile for building pref
# Generated by tmake at 18:02, 1999/02/26
#     Project: pref
#    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	= pref
DESTDIR = ./
VER_MAJ = 1
VER_MIN = 0

####### Files

HEADERS =	pref.h
SOURCES =	main.cpp \
		pref.cpp
OBJECTS =	main.o \
		pref.o
SRCMOC	=	moc_pref.cpp
OBJMOC	=	moc_pref.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 pref.pro

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

####### Compile

main.o: main.cpp \
		pref.h

pref.o: pref.cpp \
		pref.h

moc_pref.o: moc_pref.cpp \
		pref.h

moc_pref.cpp: pref.h
	$(MOC) pref.h -o moc_pref.cpp

