import of upstream 2.4.34.4 from kernel.org
[linux-2.4.git] / arch / mips / hp-lj / Makefile
1 #
2 # Makefile for the HP specific kernel interface routines
3 # under Linux.
4 #
5 # Note! Dependencies are done automagically by 'make dep', which also
6 # removes any old dependencies. DON'T put your own dependencies here
7 # unless it's something special (ie not a .c file).
8 #
9
10 USE_STANDARD_AS_RULE := true
11
12 all: hp-lj.o
13
14 O_TARGET := hp-lj.o
15
16 export-objs := utils.o
17
18 obj-y   := init.o setup.o irq.o int-handler.o pci.o utils.o asic.o
19
20 obj-$(CONFIG_KGDB) += gdb_hook.o
21 obj-$(CONFIG_DIRECT_PRINTK) += gdb_hook.o
22
23 obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o
24
25 clean:
26         rm *.o
27
28 forceit:
29
30 # package filesystem from rootfs directory into binary package
31 romfs.bin: forceit ./rootfs
32         @genromfs -d ./rootfs -f $@
33
34 # transform rootfs.bin into object file format for linking
35 initrd.o: romfs.bin
36         @echo "" | $(CROSS_COMPILE)as -o $@
37         @$(CROSS_COMPILE)objcopy --add-section .initrd=$< $@
38
39
40 include $(TOPDIR)/Rules.make
41
42 .PHONY: forceit