~ubuntu-branches/ubuntu/wily/dhcpcd5/wily-proposed

« back to all changes in this revision

Viewing changes to dev/Makefile

  • Committer: Package Import Robot
  • Author(s): Daniel Echeverry
  • Date: 2015-06-03 10:43:23 UTC
  • mfrom: (7.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150603104323-74htea00somdput9
Tags: 6.9.0-1
* QA Upload
* New upstream release. Closes: #786772, #758713, #782085, #788693
* debian/control
  + Use Replaces instead Conflicts field
  + Bump Standards-Version 3.9.6
    + Update to DEP5 copyright format 1.0
* debian/rules
  + Add DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE
* debian/patches
  + Add fix_ftbfs_kfreebsd.diff patch
    + Fix ftbfs on kfreebsd Closes: #770464
  + Add fix_manpage.diff patch
    * Fix lintian warning
  + Remove CVE-2014-6060.patch patch
    + Merge with upstream
  + Remove kfreebsd.diff patch
    * Upstream removed platform-bsd.c file in new version
* debian/prerm
  + Replace bashim with set -e
* debian/postint
  + Replace bashim with set -e
* debian/postrm
  + Replace bashim with set -e

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TOP?=   ../
 
2
include ${TOP}/Makefile.inc
 
3
include ${TOP}/config.mk
 
4
 
 
5
CFLAGS?=        -O2
 
6
CSTD?=          c99
 
7
CFLAGS+=        -std=${CSTD}
 
8
 
 
9
DEVDIR=         ${LIBDIR}/dhcpcd/dev
 
10
DSRC=           ${DEV_PLUGINS:=.c}
 
11
DOBJ=           ${DSRC:.c=.o}
 
12
DSOBJ=          ${DOBJ:.o=.So}
 
13
DPLUGS=         ${DEV_PLUGINS:=.so}
 
14
 
 
15
CLEANFILES+=    ${DSOBJ} ${DPLUGS}
 
16
 
 
17
.SUFFIXES:      .So .so
 
18
 
 
19
.c.So:
 
20
        ${CC} ${PICFLAG} -DPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@
 
21
 
 
22
.So.so: ${DSOBJ}
 
23
        ${CC} ${LDFLAGS} -shared -Wl,-x -o $@ -Wl,-soname,$@ \
 
24
            $< ${LIBS}
 
25
 
 
26
all: ${DPLUGS}
 
27
 
 
28
udev.So:
 
29
CFLAGS+=        ${LIBUDEV_CFLAGS}
 
30
CPPFLAGS+=      ${LIBUDEV_CPPFLAGS}
 
31
 
 
32
udev.so:
 
33
LIBS+=          ${LIBUDEV_LIBS}
 
34
 
 
35
proginstall: ${DPLUGS}
 
36
        ${INSTALL} -d ${DESTDIR}${DEVDIR}
 
37
        ${INSTALL} -m ${BINMODE} ${PROG} ${DPLUGS} ${DESTDIR}${DEVDIR}
 
38
 
 
39
install: proginstall
 
40
 
 
41
clean:
 
42
        rm -f ${CLEANFILES}