1 #
2 # parisc/Makefile
3 #
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies. Remember to do have actions
6 # for "archclean" and "archdep" for cleaning up and making dependencies for
7 # this architecture
8 #
9 # This file is subject to the terms and conditions of the GNU General Public
10 # License. See the file "COPYING" in the main directory of this archive
11 # for more details.
12 #
13 # Copyright (C) 1994 by Linus Torvalds
14 # Portions Copyright (C) 1999 The Puffin Group
15 #
16 # Modified for PA-RISC Linux by Paul Lahaie, Alex deVries,
17 # Mike Shaver, Helge Deller and Martin K. Petersen
18 #
19
20 FINAL_LD=$(CROSS_COMPILE)ld --warn-common --warn-section-align
21
22 CPP=$(CC) -E
23 OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S
24 LDFLAGS =
25 LINKFLAGS =-T $(TOPDIR)/arch/parisc/vmlinux.lds $(LDFLAGS)
26
27 CFLAGS_PIPE := -pipe
28 CFLAGS_NSR := -fno-strength-reduce
29 CFLAGS := $(CFLAGS) -D__linux__ $(CFLAGS_PIPE) $(CFLAGS_NSR)
30
31 # These should be on for older toolchains or SOM toolchains that don't
32 # enable them by default.
33 CFLAGS += -mno-space-regs -mfast-indirect-calls
34
35 # If we become able to compile for specific platforms, this should be
36 # conditional on that.
37 CFLAGS += -mschedule=7200
38
39 # No fixed-point multiply
40 CFLAGS += -mdisable-fpregs
41
42 HEAD = arch/parisc/kernel/head.o
43
44 SUBDIRS := $(SUBDIRS) $(addprefix arch/parisc/, tools kernel mm lib hpux)
45 CORE_FILES := $(addprefix arch/parisc/, kernel/pdc_cons.o kernel/process.o \
46 lib/lib.a mm/mm.o kernel/kernel.o hpux/hpux.o) \
47 $(CORE_FILES) arch/parisc/kernel/init_task.o
48 LIBS := `$(CC) -print-libgcc-file-name` $(TOPDIR)/arch/parisc/lib/lib.a $(LIBS)
49
50 ifdef CONFIG_MATH_EMULATION
51 SUBDIRS := $(SUBDIRS) arch/parisc/math-emu
52 DRIVERS := $(DRIVERS) arch/parisc/math-emu/math.a
53 endif
54
55 ifdef CONFIG_KWDB
56 SUBDIRS := $(SUBDIRS) arch/parisc/kdb
57 DRIVERS := $(DRIVERS) arch/parisc/kdb/kdb.o
58
59 arch/parisc/kdb: dummy
60 $(MAKE) linuxsubdirs SUBDIRS=arch/parisc/kdb
61 endif
62
63 arch/parisc/kernel: dummy
64 $(MAKE) linuxsubdirs SUBDIRS=arch/parisc/kernel
65
66 arch/parisc/mm: dummy
67 $(MAKE) linuxsubdirs SUBDIRS=arch/parisc/mm
68
69 palo: vmlinux
70 export TOPDIR=`pwd`; export CONFIG_STI_CONSOLE=$(CONFIG_STI_CONSOLE); \
71 unset STRIP LDFLAGS CPP CPPFLAGS AFLAGS CFLAGS CC LD; cd ../palo && make lifimage
72
73 Image: palo
74
75 Image-clean:
76
77 ramdisk.o:
78
79 zImage: palo
80
81 bzImage: palo
82
83 compressed: zImage
84
85 install:
86
87 archclean:
88
89 archmrproper:
90
91 archdep:
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.