[BACK]Return to Makefile-linux-2.6 CVS log [TXT][DIR] Up to [Development] / xfs-linux

File: [Development] / xfs-linux / Attic / Makefile-linux-2.6 (download)

Revision 1.39, Tue Oct 24 07:44:08 1995 UTC (22 years ago) by ack
Branch: MAIN
Changes since 1.38: +3 -4 lines

auto-merge of changes from /hosts/clyde/proj/banyan/isms/irix/kern/fs/xfs/RCS/Makefile,v
> ----------------------------
> revision 1.39
> date: 1995/10/20 02:17:09;  author: doucette;  state: Exp;  lines: +3 -4
> Remove xfsidbg.h.  Remove the -g flag from xfsidbg.c build.
> =============================================================================

#!smake
#
# Makefile for SGI xFS
#
# $Revision$
DEPTH?=../..
include ${DEPTH}/kcommondefs
KPATH=$(TOP)/fs/xfs
.PATH:$(KPATH)

#if defined(DBOPTS) && !empty(DBOPTS)
#else
#
# when compiling a nondebug kernel, turn off compiler warnings about variables 
# being set but not used. with DEBUG disabled, the ASSERT statements are gone.
#
KWOFF=,1552
#endif

KCOPTS=-fullwarn $(XFSCOPTS)

XFS_NAME=xfs.a
XFS_CSRCS=	xfs_alloc.c \
		xfs_alloc_btree.c \
		xfs_attr.c \
		xfs_attr_leaf.c \
		xfs_bit.c \
		xfs_bmap.c \
		xfs_bmap_btree.c \
		xfs_btree.c \
		xfs_buf_item.c \
		xfs_da_btree.c \
		xfs_dir.c \
		xfs_dir_leaf.c \
		xfs_error.c \
		xfs_extfree_item.c \
		xfs_fsops.c \
		xfs_handle.c \
		xfs_ialloc.c \
		xfs_ialloc_btree.c \
		xfs_iget.c \
		xfs_inode.c \
		xfs_inode_item.c \
		xfs_itable.c \
		xfs_log.c \
		xfs_log_recover.c \
		xfs_macros.c \
		xfs_mount.c \
		xfs_rw.c \
		xfs_trans.c \
		xfs_trans_ail.c \
		xfs_trans_buf.c \
		xfs_trans_extfree.c \
		xfs_trans_inode.c \
		xfs_trans_item.c \
		xfs_vfsops.c \
		xfs_vnodeops.c

XFS_OBJS=$(XFS_CSRCS:.c=.o)
$(XFS_NAME):$(XFS_NAME)($(XFS_OBJS)) MAKELIB

XFSRT_NAME=xfsrt.a
XFSRT_CSRCS=	xfs_grio.c \
		xfs_rtalloc.c \
		xfs_rtbit.c
XFSRT_OBJS=$(XFSRT_CSRCS:.c=.o)
$(XFSRT_NAME):$(XFSRT_NAME)($(XFSRT_OBJS)) MAKELIB

XIDBG_NAME=xfsidbg.o
XIDBG_CSRCS=xfsidbg.c

TARGETS=$(XFS_NAME) $(XFSRT_NAME) $(XIDBG_NAME)

LINTNAME=xfs
CFILES=$(XFS_CSRCS) $(XFSRT_CSRCS) $(XIDBG_CSRCS)
HFILES=	xfs_ag.h \
	xfs_alloc.h \
	xfs_alloc_btree.h \
	xfs_attr.h \
	xfs_attr_leaf.h \
	xfs_attr_sf.h \
	xfs_bit.h \
	xfs_bmap.h \
	xfs_bmap_btree.h \
	xfs_btree.h \
	xfs_buf_item.h \
	xfs_clnt.h \
	xfs_dinode.h \
	xfs_da_btree.h \
	xfs_dir.h \
	xfs_dir_leaf.h \
	xfs_dir_sf.h \
	xfs_error.h \
	xfs_extfree_item.h \
	xfs_fsops.h \
	xfs_handle.h \
	xfs_ialloc.h \
	xfs_ialloc_btree.h \
	xfs_imap.h \
	xfs_inode.h \
	xfs_inode_item.h \
	xfs_inum.h \
	xfs_itable.h \
	xfs_log.h \
	xfs_log_priv.h \
	xfs_log_recover.h \
	xfs_macros.h \
	xfs_mount.h \
	xfs_rtalloc.h \
	xfs_rw.h \
	xfs_sb.h \
	xfs_trans.h \
	xfs_trans_priv.h \
	xfs_types.h

#
# Rules
#
include ${DEPTH}/kcommonrules

$(KCOMMONPREF)default:$(TARGETS)
	${KLINKINSTALL} ${TARGETS}

$(KCOMMONPREF)install: $(KCOMMONPREF)default
	${KINSTALL} ${XFS_NAME}
	${KINSTALL} ${XFSRT_NAME}
	${KINSTALL} ${XIDBG_NAME}
	${KDEVINSTALL} ${TARGETS}

headers!
	$(INSTALL) -m 444 -F /usr/include/sys/fs $(HFILES)

xfsidbg.o: xfsidbg.c
	$(CCF) -c $(JALR) -G 0 $(KPATH)/xfsidbg.c && \
	$(LDF) $(PRODOBJECT) -G 0 -r $(.TARGET:T) -o $$$$.o && \
	mv $$$$.o $(.TARGET:T)