1 SYSNAME
:=${shell uname
}
3 MULTILIBPATH
=${shell test -d
/lib64
&& echo lib64 || echo lib
}
4 HFILES
=..
/include/npfs.h ..
/include/npclient.h ..
/include/npauth.h npaimpl.h
5 CFLAGS
=-Wall
-g
-I ..
/include
14 libnpauth.a
: $(LIBFILES
)
15 ar rc libnpauth.a
$(LIBFILES
)
19 mkdir
-p
$(INSTALLPREFIX
)/include
20 mkdir
-p
$(INSTALLPREFIX
)/$(MULTILIBPATH
)
21 cp ..
/include/npauth.h
$(INSTALLPREFIX
)/include
22 cp libnpauth.a
$(INSTALLPREFIX
)/$(MULTILIBPATH
)
26 make
-C examples
clean
28 $(LIBFILES
): Makefile
$(HFILES
)
31 $(CC
) $(CFLAGS
) -c
$*.c