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

« back to all changes in this revision

Viewing changes to src/im-client/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
SOFILE=libhime-im-client.so
 
4
SOFILEVER=libhime-im-client.so.1.2.4
 
5
 
 
6
.SUFFIXES:      .c .o .E .cpp
 
7
WALL=-Wall
 
8
CFLAGS= -DUNIX=1 $(WALL) $(OPTFLAGS) -I. -I.. -I../IMdkit/include $(GTKINC) \
 
9
        -DCLIENT_LIB=1 -DHIME_BIN_DIR=\"$(HIME_BIN_DIR)\" -DUNIX=1 \
 
10
        -DHIME_TABLE_DIR=\"$(HIME_TABLE_DIR)\" \
 
11
        -DFREEBSD=$(FREEBSD) -fPIC
 
12
OBJS = hime-im-client.o hime-send.o im-addr.o hime-conf.o util.o hime-crypt-fpic.o
 
13
 
 
14
.cpp.E:
 
15
        @echo "  $< -> $@"
 
16
        @$(CC) $(CFLAGS) -E -o $@ $<
 
17
 
 
18
.c.o:
 
19
        @echo "  $< -> $@"
 
20
        @$(CC) -c $(CFLAGS) $<
 
21
 
 
22
.cpp.o:
 
23
        @echo "  $< -> $@"
 
24
        @$(CC) -x c -c $(CFLAGS) $<
 
25
 
 
26
$(SOFILEVER):   $(OBJS)
 
27
        @echo "linking $@ ..."
 
28
        @$(CC) $(SO_FLAGS) -Wl,-soname,libhime-im-client.so.1 $(OBJS) -lX11 -o $@ -L/usr/X11R6/lib
 
29
        ln -sf $(SOFILEVER) $(SOFILE)
 
30
        ln -sf $(SOFILEVER) $(SOFILE).1
 
31
        if [ $(GTK_IM) = 'Y' ]; then $(MAKE) -C ../gtk-im; fi
 
32
 
 
33
LOCALLIB=/usr/local/$(LIB)
 
34
 
 
35
install:
 
36
        install -d $(himelibdir)
 
37
        install -m 755 $(SOFILEVER) $(himelibdir)
 
38
        cd $(himelibdir); rm -f $(SOFILE); ln -s $(SOFILEVER) $(SOFILE); \
 
39
        ln -sf $(SOFILEVER) $(SOFILE).1
 
40
 
 
41
hime-conf.o: ../hime-conf.c
 
42
        @echo "  $^ -> $@"
 
43
        @$(CCX) -c $(CFLAGS) -o $@ $<
 
44
 
 
45
util.o: ../util.c
 
46
        @echo "  $^ -> $@"
 
47
        @$(CCX) -c $(CFLAGS) -o $@ $<
 
48
 
 
49
im-addr.o: ../im-addr.c
 
50
        @echo "  $^ -> $@"
 
51
        @$(CCX) -c $(CFLAGS) -o $@ $<
 
52
 
 
53
hime-crypt-fpic.o: ../hime-crypt.c
 
54
        @echo "  $^ -> $@"
 
55
        @$(CCX) -c $(CFLAGS) -o $@ $<
 
56
 
 
57
clean:
 
58
        @echo "clean up"
 
59
        @rm -f *.o *.so *.so.* *~ *.E *.db tags core.* .depend
 
60
 
 
61
.depend:
 
62
        @echo "building $@ ..."
 
63
        @$(CCX) $(CFLAGS) -MM *.c > $@
 
64
 
 
65
include .depend