Changes in v9fs broke pipesrv. Fix it.
[npfs.git] / libnpauth / Makefile
blobc440f517af953b6bec720e916de879b9095a1e0a
1 SYSNAME:=${shell uname}
2 SYSNAME!=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
7 LIBFILES=\
8 help.o\
9 msgs.o\
10 p9any.o\
11 p9sk1.o\
12 srv.o\
14 libnpauth.a: $(LIBFILES)
15 ar rc libnpauth.a $(LIBFILES)
16 ranlib libnpauth.a
18 install:
19 mkdir -p $(INSTALLPREFIX)/include
20 mkdir -p $(INSTALLPREFIX)/$(MULTILIBPATH)
21 cp ../include/npauth.h $(INSTALLPREFIX)/include
22 cp libnpauth.a $(INSTALLPREFIX)/$(MULTILIBPATH)
24 clean:
25 rm -f *.o *.a *~
26 make -C examples clean
28 $(LIBFILES): Makefile $(HFILES)
30 %.o: %.c
31 $(CC) $(CFLAGS) -c $*.c