~ubuntu-branches/ubuntu/precise/autofs5/precise

« back to all changes in this revision

Viewing changes to .pc/autofs-5.0.5-fix-libxml2-workaround-configure.patch/daemon/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-07-03 14:35:46 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110703143546-nej26krjij0rf792
Tags: 5.0.6-0ubuntu1
* New upstream release:
  - Dropped upstream patches 
  - Refreshed debian/patches/17ld.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Makefile for autofs
3
 
#
4
 
 
5
 
-include ../Makefile.conf
6
 
include ../Makefile.rules
7
 
 
8
 
SRCS = automount.c indirect.c direct.c spawn.c module.c mount.c \
9
 
        lookup.c state.c flag.c
10
 
OBJS = automount.o indirect.o direct.o spawn.o module.o mount.o \
11
 
        lookup.o state.o flag.o
12
 
 
13
 
version := $(shell cat ../.version)
14
 
 
15
 
CFLAGS += -rdynamic $(DAEMON_CFLAGS) -D_GNU_SOURCE -I../include
16
 
CFLAGS += -DAUTOFS_LIB_DIR=\"$(autofslibdir)\" 
17
 
CFLAGS += -DAUTOFS_MAP_DIR=\"$(autofsmapdir)\"
18
 
CFLAGS += -DAUTOFS_CONF_DIR=\"$(autofsconfdir)\"
19
 
CFLAGS += -DAUTOFS_FIFO_DIR=\"$(autofsfifodir)\"
20
 
CFLAGS += -DAUTOFS_FLAG_DIR=\"$(autofsflagdir)\"
21
 
CFLAGS += -DVERSION_STRING=\"$(version)\"
22
 
LDFLAGS += -rdynamic
23
 
LIBS = -ldl
24
 
 
25
 
ifeq ($(LDAP), 1)
26
 
  ifeq ($(SASL), 1)
27
 
    CFLAGS += $(XML_FLAGS)
28
 
    LIBS += $(XML_LIBS)
29
 
  endif
30
 
endif
31
 
 
32
 
all: automount
33
 
 
34
 
automount: $(OBJS) $(AUTOFS_LIB)
35
 
        $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS)
36
 
        $(STRIP) automount
37
 
 
38
 
clean:
39
 
        rm -f *.o *.s *~ automount
40
 
 
41
 
install: all
42
 
        install -d -m 755 $(INSTALLROOT)$(sbindir)
43
 
        install -c automount -m 755 $(INSTALLROOT)$(sbindir)
44
 
 
45