blob: f9c913bb614c6510d66d90df293db8833f2ba69a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $Id: qt.FreeBSD.mk,v 1.0 2004/11/05 10:22:11 denis Exp $
QTDIR= ${X11BASE}
MOC= ${QTDIR}/bin/moc
LUPDATE= ${QTDIR}/bin/lupdate
LRELEASE= ${QTDIR}/bin/lrelease
PTHREAD_CFLAGS?= -pthread
PTHREAD_LIBS?= -pthread
QTCFLAGS= ${QTDIR}/include -DQT_NO_COMPAT ${PTHREAD_CFLAGS}
QTLFLAGS= -L${QTDIR}/lib -lqt-mt ${PTHREAD_LIBS}
CFLAGS+= -I${QTCFLAGS}
CXXFLAGS= ${CFLAGS}
LDADD+= ${QTLFLAGS}
SRCMOC= ${MOCS:M*.h:R:S/$/.cxx/g}
OBJMOC= ${MOCS:M*.h:R:S/$/.mo/g}
OBJS+= ${OBJMOC}
CLEANFILES+= ${SRCMOC}
.SUFFIXES: .h .cxx .mo
.h.cxx:
${MOC} ${.IMPSRC} -o ${.TARGET}
.cxx.mo:
${CXX} ${CXXFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|