6 include ../../Make.Rules
10 # ---------------------------------------------
14 # ---------------------------------------------
16 CFLAGS += $(PIC) $(STATIC) $(MOREFLAGS) \
17 -DLIBPAM_VERSION_MAJOR=$(MAJOR_REL) \
18 -DLIBPAM_VERSION_MINOR=$(MINOR_REL)
20 # all the object files we care about
21 LIBOBJECTS = modutil_cleanup.o modutil_getpwnam.o modutil_getpwuid.o \
22 modutil_getspnam.o modutil_getgrnam.o modutil_getgrgid.o \
23 modutil_ingroup.o modutil_getlogin.o modutil_ioloop.o
26 LIBSTATIC = $(LIBNAME).a
28 SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS) $(STATICOBJ))
30 # ---------------------------------------------
33 all: dirs $(LIBSTATIC) ../../Make.Rules
39 $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
41 $(LIBSTATIC): $(SLIBOBJECTS)
42 ar cr $@ $(SLIBOBJECTS)
46 @echo "at this time, we're not installing $(LIBSTATIC)"
49 @echo "at this time, there is nothing to remove"
52 rm -f a.out core *~ static/*.o
54 if [ -d dynamic ]; then rmdir dynamic ; fi
55 if [ -d static ]; then rmdir static ; fi