~ubuntu-branches/ubuntu/precise/hime/precise

« back to all changes in this revision

Viewing changes to src/qt4-im/Makefile

  • Committer: Package Import Robot
  • Author(s): Yao Wei (魏銘廷)
  • Date: 2012-01-14 00:24:08 UTC
  • Revision ID: package-import@ubuntu.com-20120114002408-e79gagbeg1rt8npv
Tags: upstream-0.9.9
Import upstream version 0.9.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../../config.mak
 
2
 
 
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 \
 
5
-DQT_IMMODULE -DPIC
 
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`
 
9
all:    im-hime.so
 
10
 
 
11
.cpp.E:
 
12
        @echo "  $< -> $@"
 
13
        @$(CXX) -E $(CFLAGS) $(INCS) $< > $@
 
14
 
 
15
.cpp.o:
 
16
        @echo "  $< -> $@"
 
17
        @$(CXX) -c -o $@ $(CXXFLAGS) $(INCS) $<
 
18
 
 
19
moc_hime-qt.cpp:        hime-qt.h
 
20
        @echo "  $< -> $@"
 
21
        $(QT4_MOC_PATH) $< -o moc_hime-qt.cpp
 
22
 
 
23
im-hime.so: $(OBJS)
 
24
        @echo "linking $@ ..."
 
25
        @export LD_RUN_PATH=$(himelibdir) ;\
 
26
                $(CXX) $(gcc_ld_run_path) -fno-exceptions -shared -o $@ $(OBJS) $(LDFLAGS)
 
27
        @rm -f core.*
 
28
 
 
29
install:
 
30
        install -d $(DESTDIR)/$(QT4_IM_DIR); \
 
31
        install -m 755 im-hime.so $(DESTDIR)/$(QT4_IM_DIR)
 
32
 
 
33
clean:
 
34
        @echo "clean up"
 
35
        @rm -f $(OBJS) im-hime.so *~ core.* *moc*.cpp *.E .depend
 
36
 
 
37
.depend:
 
38
        @echo "building $@ ..."
 
39
        @$(CXX) $(CXXFLAGS) -MM *.cpp > $@
 
40
 
 
41
include .depend