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
10USE_STANDARD_AS_RULE := true
11
12all: hp-lj.o
13
14O_TARGET := hp-lj.o
15
16export-objs := utils.o
17
18obj-y   := init.o setup.o irq.o int-handler.o pci.o utils.o asic.o
19
20obj-$(CONFIG_KGDB) += gdb_hook.o
21obj-$(CONFIG_DIRECT_PRINTK) += gdb_hook.o
22
23obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o
24
25clean:
26	rm *.o
27
28forceit:
29
30# package filesystem from rootfs directory into binary package
31romfs.bin: forceit ./rootfs
32	@genromfs -d ./rootfs -f $@
33
34# transform rootfs.bin into object file format for linking
35initrd.o: romfs.bin
36	@echo "" | $(CROSS_COMPILE)as -o $@
37	@$(CROSS_COMPILE)objcopy --add-section .initrd=$< $@
38
39
40include $(TOPDIR)/Rules.make
41
42.PHONY: forceit
43