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

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

Revision 1.1, Fri Oct 1 15:10:15 2004 UTC (13 years ago) by nathans.longdrop.melbourne.sgi.com
Branch: MAIN

Upgrade kernel to 2.6.9-rc3 and kdb to 4.4
Merge of 2.6.x-xfs-melb:linux:19628a by kenmcd.

#
# Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
# Licensed under the GPL
#

# struct stat64 changed the inode field name between 2.2 and 2.4 from st_ino
# to __st_ino.  It stayed in the same place, so as long as the correct name
# is used, hostfs compiled on 2.2 should work on 2.4 and vice versa.

STAT64_INO_FIELD := $(shell grep -q __st_ino /usr/include/bits/stat.h && \
				echo __)st_ino

hostfs-objs := hostfs_kern.o hostfs_user.o

obj-y =
obj-$(CONFIG_HOSTFS) += hostfs.o

SINGLE_OBJS = $(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs))

USER_OBJS := $(filter %_user.o,$(obj-y) $(obj-m) $(SINGLE_OBJS))
USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))

USER_CFLAGS += -DSTAT64_INO_FIELD=$(STAT64_INO_FIELD)

$(USER_OBJS) : %.o: %.c
	$(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<