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
24 LIBSTATIC = $(LIBNAME).a
26 SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS) $(STATICOBJ))
28 # ---------------------------------------------
31 all: dirs $(LIBSTATIC) ../../Make.Rules
37 $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
39 $(LIBSTATIC): $(SLIBOBJECTS)
40 ar cr $@ $(SLIBOBJECTS)
44 @echo "at this time, we're not installing $(LIBSTATIC)"
47 @echo "at this time, there is nothing to remove"
50 rm -f a.out core *~ static/*.o
52 if [ -d dynamic ]; then rmdir dynamic ; fi
53 if [ -d static ]; then rmdir static ; fi