blob: c9cd0062ddd1eff544a2ba331cf89c5cdcadb123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#
# $Id$
#
#
include ../../Make.Rules
LIBNAME=libpammodutil
# ---------------------------------------------
dummy: all
# ---------------------------------------------
CFLAGS += $(PIC) $(STATIC) $(MOREFLAGS) \
-DLIBPAM_VERSION_MAJOR=$(MAJOR_REL) \
-DLIBPAM_VERSION_MINOR=$(MINOR_REL)
# all the object files we care about
LIBOBJECTS = modutil_cleanup.o modutil_getpwnam.o modutil_getpwuid.o \
modutil_getspnam.o modutil_getgrnam.o modutil_getgrgid.o \
modutil_ingroup.o modutil_getlogin.o modutil_ioloop.o
# static library name
LIBSTATIC = $(LIBNAME).a
SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS) $(STATICOBJ))
# ---------------------------------------------
## rules
all: dirs $(LIBSTATIC) ../../Make.Rules
dirs:
$(MKDIR) static
static/%.o : %.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
$(LIBSTATIC): $(SLIBOBJECTS)
ar cr $@ $(SLIBOBJECTS)
$(RANLIB) $@
install:
@echo "at this time, we're not installing $(LIBSTATIC)"
remove:
@echo "at this time, there is nothing to remove"
clean:
rm -f a.out core *~ static/*.o
rm -f *.a *.o
if [ -d dynamic ]; then rmdir dynamic ; fi
if [ -d static ]; then rmdir static ; fi
|