1# arch/ia64/sn/Makefile
2#
3# Copyright (C) 1999,2001-2002 Silicon Graphics, Inc.  All Rights Reserved.
4#
5# This program is free software; you can redistribute it and/or modify it 
6# under the terms of version 2 of the GNU General Public License 
7# as published by the Free Software Foundation.
8# 
9# This program is distributed in the hope that it would be useful, but 
10# WITHOUT ANY WARRANTY; without even the implied warranty of 
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
12# 
13# Further, this software is distributed without any warranty that it is 
14# free of the rightful claim of any third person regarding infringement 
15# or the like.  Any license provided herein, whether implied or 
16# otherwise, applies only to this software file.  Patent licenses, if 
17# any, provided herein do not apply to combinations of this program with 
18# other software, or any other product whatsoever.
19# 
20# You should have received a copy of the GNU General Public 
21# License along with this program; if not, write the Free Software 
22# Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
23# 
24# Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, 
25# Mountain View, CA  94043, or:
26# 
27# http://www.sgi.com 
28# 
29# For further information regarding this notice, see: 
30# 
31# http://oss.sgi.com/projects/GenInfo/NoticeExplan
32#
33
34EXTRA_CFLAGS    := -DLITTLE_ENDIAN
35
36.S.s:
37	$(CPP) $(AFLAGS) $(AFLAGS_KERNEL) -o $*.s $<
38.S.o:
39	$(CC) $(AFLAGS) $(AFLAGS_KERNEL) -c -o $*.o $<
40
41O_TARGET        = sn.o
42
43ifeq ($(CONFIG_MODULES),y)
44export-objs = sn_ksyms.o
45endif
46
47subdir-$(CONFIG_IA64_SGI_SN1)	= sn1
48subdir-$(CONFIG_IA64_SGI_SN2)	= sn2
49
50obj-y		= probe.o setup.o sn_asm.o sv.o bte.o iomv.o
51obj-$(CONFIG_IA64_SGI_SN1)      += irq.o mca.o
52obj-$(CONFIG_IA64_SGI_SN2)      += irq.o mca.o
53
54obj-$(CONFIG_IA64_SGI_SN1)      += sn1/sn1.a  
55obj-$(CONFIG_IA64_SGI_SN2)      += sn2/sn2.a  
56
57obj-$(CONFIG_IA64_SGI_AUTOTEST) += llsc4.o misctest.o
58obj-$(CONFIG_IA64_GENERIC)      += machvec.o
59obj-$(CONFIG_MODULES)           += sn_ksyms.o
60
61
62include $(TOPDIR)/Rules.make
63