~ubuntu-branches/ubuntu/karmic/irssi-plugin-xmpp/karmic

« back to all changes in this revision

Viewing changes to src/rules.mk

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2009-06-19 23:14:39 UTC
  • mfrom: (1.1.4 upstream) (2.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090619231439-xmcr03qdpzswarvi
Tags: 0.13+cvs20090617-1
* New CVS snapshot:
  - Some bugfixes and code cleanup.
  - Allow to build on ia64 (Closes: #530304).
* Bump Standards-Version to 3.8.2 (no changes). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: rules.mk,v 1.6 2008/08/15 00:25:21 cdidier Exp $
 
1
# $Id: rules.mk,v 1.8 2009/06/03 15:15:54 cdidier Exp $
2
2
 
3
3
include ../../config.mk
4
4
 
7
7
all: ${LIB}
8
8
 
9
9
.c.o:
10
 
        @echo ${CC} -c $<
11
 
        @${CC} -c $< -o $@ ${CFLAGS}
 
10
        ${CC} ${CFLAGS} -o $@ -c $<
12
11
 
13
12
${LIB}: ${OBJS}
14
 
        @echo ${CC} -o lib$@.so
15
 
        @${CC} -o lib$@.so ${OBJS} ${LDFLAGS}
 
13
        ${CC} ${LDFLAGS} -o lib$@.so ${OBJS}
16
14
 
17
15
clean:
18
 
        @echo cleaning
19
 
        @rm -f lib${LIB}.so ${OBJS}
 
16
        rm -f lib${LIB}.so ${OBJS}
20
17
 
21
18
install: all
22
19
        @echo installing the module lib${LIB}.so to ${DESTDIR}${IRSSI_LIB}/modules
23
 
        @install -d ${DESTDIR}${IRSSI_LIB}/modules
24
 
        @install lib${LIB}.so ${DESTDIR}${IRSSI_LIB}/modules
 
20
        install -d ${DESTDIR}${IRSSI_LIB}/modules
 
21
        install lib${LIB}.so ${DESTDIR}${IRSSI_LIB}/modules
25
22
 
26
23
uninstall:
27
24
        @echo deinstalling the module lib${LIB}.so from ${DESTDIR}${IRSSI_LIB}/modules
28
 
        @rm -f ${DESTDIR}${IRSSI_LIB}/modules/lib${LIB}.so
 
25
        rm -f ${DESTDIR}${IRSSI_LIB}/modules/lib${LIB}.so
29
26
 
30
27
user-install:
31
 
        @env DESTDIR= IRSSI_LIB=~/.irssi ${MAKE} install
 
28
        env DESTDIR= IRSSI_LIB=~/.irssi ${MAKE} install
32
29
 
33
30
user-uninstall:
34
 
        @env DESTDIR= IRSSI_LIB=~/.irssi ${MAKE} uninstall
 
31
        env DESTDIR= IRSSI_LIB=~/.irssi ${MAKE} uninstall
35
32
 
36
33
.PHONY: clean install uninstall user-install user-uninstall