Whamcloud - gitweb
20d7fbd4f6a37eb7787c2cde3092765d3c905761
[fs/lustre-release.git] / lnet / libcfs / Makefile.am
1 # Copyright (C) 2001, 2002 Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6
7 MODULE = portals
8 modulenet_DATA = portals.o
9 EXTRA_PROGRAMS = portals
10
11 LIBLINKS := lib-dispatch.c lib-eq.c lib-init.c lib-md.c lib-me.c lib-move.c lib-msg.c lib-ni.c lib-pid.c
12 APILINKS := api-eq.c api-errno.c api-init.c api-me.c api-ni.c api-wrap.c
13 LINKS = $(APILINKS) $(LIBLINKS) 
14 DISTCLEANFILES = $(LINKS) link-stamp *.orig *.rej
15
16 $(LINKS): link-stamp
17 link-stamp:
18         -list='$(LIBLINKS)'; for f in $$list; do echo $$f ; ln -sf $(srcdir)/../portals/$$f .; done
19         -list='$(APILINKS)'; for f in $$list; do echo $$f ; ln -sf $(srcdir)/../portals/$$f .; done
20         echo timestamp > link-stamp
21
22 DEFS =
23 portals_SOURCES = $(LINKS) module.c proc.c debug.c
24
25 # Don't distribute any patched files.
26 dist-hook:
27         list='$(EXT2C)'; for f in $$list; do rm -f $(distdir)/$$f; done
28
29 include ../Rules.linux