Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#
# Makefile rules for autofs project
#
# Root directory contents
SUBDIRS = lib daemon modules man samples
INCDIRS = include
INCFILES = COPYING COPYRIGHT NEWS README* TODO Makefile Makefile.rules \
Makefile.conf.in .version .autofs-* configure.in aclocal.m4 \
configure *.patch autofs.spec
# Attempt to be friends with autotools
INSTALLROOT = $(DESTDIR)
# autofs utility library
AUTOFS_LIB = ../lib/autofs.a
# Compilers, linkers and flags
# The STRIP defined here *must not* remove any dynamic-loading symbols
ifdef DMALLOCLIB
DEBUG=1
endif
ifdef DEBUG
CFLAGS ?= -g -Wall -DDEBUG
LDFLAGS ?= -g
else
CFLAGS ?= -O2 -Wall
LDFLAGS ?= -s
endif
ifdef DONTSTRIP
STRIP ?= :
else
STRIP ?= strip --strip-debug
endif
CC ?= gcc
CXX ?= g++
CXXFLAGS ?= $(CFLAGS)
LD ?= ld
SOLDFLAGS = -shared
CFLAGS += -D_REENTRANT -D_FILE_OFFSET_BITS=64
LIBS += -lpthread
ifdef TIRPCLIB
CFLAGS += -I/usr/include/tirpc
LIBS += $(TIRPCLIB)
endif
ifdef DMALLOCLIB
LIBS += $(DMALLOCLIB)
endif
LIBS += $(LIBNSL)
LIBS += $(LIBCLOCK_GETTIME)
# Standard rules
.SUFFIXES: .c .o .s .so
.c.o:
$(CC) $(CFLAGS) -c $<
.c.s:
$(CC) $(CFLAGS) -S $<
.c.so:
$(CC) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(LDFLAGS) $(AUTOFS_LIB) $(LIBS)
$(STRIP) $*.so