Debian Codegraph @

qt5-im/Makefile55

raw
1 include ../config.mak
2 QT=qt5
3 QTIM=$(QT)/plugins/platforminputcontexts
4 IMMODULES=$(libdir)/$(DEB_BUILD_MULTIARCH)/$(QTIM)
5
6 INCS=-I../im-client -I/usr/include/X11 `pkg-config Qt5Core Qt5Gui Qt5PlatformSupport QtDBus --cflags`
7 MODVERSION=`pkg-config --modversion Qt5Gui`
8 QTINC=`pkg-config --variable=includedir Qt5Gui`
9 INCS+=-I$(QTINC)/QtGui/$(MODVERSION)/QtGui
10 #INCS+=-I/usr/include/i386-linux-gnu/qt5/QtGui/$(MODVERSION)/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtGui/$(MODVERSION)/QtGui
11
12 CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -DUNIX=1 -fPIC -DQT5 -DQT_SHARED -DQT_IMMODULE -DPIC -DDEBUG="0$(GCIN_DEBUG)"
13 OBJS= moc_gcin-qt5.o gcin-qt5.o gcin-imcontext-qt5.o moc_qgcinplatforminputcontext.o
14 .SUFFIXES: .c .cpp .a .so .E .h
15 LDFLAGS=-L../im-client -lgcin-im-client `pkg-config Qt5Core Qt5Gui Qt5PlatformSupport --libs`
16
17 GCIN_QT5 = libgcinplatforminputcontextplugin.so
18
19 all: $(GCIN_QT5)
20
21 .cpp.E:
22 $(CXX) -E $(CFLAGS) $(INCS) $< > $@
23
24 moc_gcin-qt5.cpp: gcin-qt5.h
25 $(QT5_MOC) $< -o $@
26
27 moc_qgcinplatforminputcontext.cpp: qgcinplatforminputcontext.h
28 $(QT5_MOC) $< -o $@
29
30 $(GCIN_QT5): $(OBJS)
31 export LD_RUN_PATH=$(gcinlibdir) ;\
32 $(CXX) $(gcc_ld_run_path) -fno-exceptions -shared -o $@ $(OBJS) $(LDFLAGS)
33 rm -f core.*
34 install:
35 if [ $(prefix) = /usr/local ]; then \
36 install -d $(DESTDIR)/$(QT5_IM_DIR); \
37 install -m 755 $(GCIN_QT5) $(DESTDIR)/$(QT5_IM_DIR); \
38 else \
39 install -d $(IMMODULES); \
40 install -m 755 $(GCIN_QT5) $(IMMODULES); \
41 fi
42 clean:
43 rm -f $(OBJS) $(GCIN_QT5) *~ core.* *moc*.cpp *.E .depend
44
45 .depend:
46 $(CXX) $(CXXFLAGS) -MM *.cpp > $@
47
48 include .depend