#-*- mode: makefile; tab-width: 4; -*-
#
######### libfwbuilder/qmake.inc.in
#
QTDIR = $$(QTDIR)
TEMPLATE = lib
DEFINES += $$(DEFINES)
INCLUDEPATH += .. ../.. $$(INCLUDEPATH)
DEPENDPATH  += .. ../..
LANGUAGE = C++

HAVE_CPPUNIT = @HAVE_CPPUNIT@
CPPUNIT_CFLAGS = @CPPUNIT_CFLAGS@
CPPUNIT_LIBS = @CPPUNIT_LIBS@

unix {
    CONFIG += warn_on debug

    UI_DIR = .ui
    MOC_DIR = .moc
    OBJECTS_DIR = .obj

    prefix = @prefix@

    QMAKE_CXX = @CCACHE@ @DISTCC@ $$QMAKE_CXX

	# We put /usr/include into INCLUDEPATH to fix a problem compiling
	# fwbuilder/snmp.cpp on freebsd.
    INCLUDEPATH += /usr/include @XML_CFLAGS_Q@ @XSLT_CFLAGS_Q@
    LIBS += @PTHREAD_LIBS@ @XML_LIBS@ @XSLT_LIBS@ @LIBSNMP_LIBS@ @LIB_RESOLV@ @LIBS@

    QMAKE_CFLAGS_DEBUG += -Wno-unused-parameter
    QMAKE_CFLAGS_RELEASE += -Wno-unused-parameter
    QMAKE_CXXFLAGS_DEBUG += -Wno-unused-parameter @CXXFLAGS@
    QMAKE_CXXFLAGS_RELEASE += -Wno-unused-parameter @CXXFLAGS@

    exec_prefix = @EXEC_PREFIX@
    DESTDIR =

    target.path = @LIBDIR@
    dtd.path = @RES_DIR@/
    migration.path = @RES_DIR@/migration
    doc.path = @DOCDIR@
}

exists(qmake2.inc) {
  include( qmake2.inc)
}

CONFIG -= qt

INSTALLS += target
