1
include ../../config.mak
3
INCS=-I../im-client -I/usr/include/X11 `pkg-config QtCore QtGui --cflags`
4
CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -DUNIX=1 -fPIC -DQT4 -DQT_SHARED \
6
OBJS= moc_hime-qt.o hime-qt.o im-hime-qt.o hime-imcontext-qt.o
7
.SUFFIXES: .c .cpp .a .so .E .h
8
LDFLAGS=-L../im-client -lhime-im-client `pkg-config QtCore QtGui --libs`
13
@$(CXX) -E $(CFLAGS) $(INCS) $< > $@
17
@$(CXX) -c -o $@ $(CXXFLAGS) $(INCS) $<
19
moc_hime-qt.cpp: hime-qt.h
21
$(QT4_MOC_PATH) $< -o moc_hime-qt.cpp
24
@echo "linking $@ ..."
25
@export LD_RUN_PATH=$(himelibdir) ;\
26
$(CXX) $(gcc_ld_run_path) -fno-exceptions -shared -o $@ $(OBJS) $(LDFLAGS)
30
install -d $(DESTDIR)/$(QT4_IM_DIR); \
31
install -m 755 im-hime.so $(DESTDIR)/$(QT4_IM_DIR)
35
@rm -f $(OBJS) im-hime.so *~ core.* *moc*.cpp *.E .depend
38
@echo "building $@ ..."
39
@$(CXX) $(CXXFLAGS) -MM *.cpp > $@