2 # Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 # Licensed under the GPL
7 clean-files
:= vmlinux.lds.S
9 obj-y
= checksum.o config.o exec_kern.o exitcode.o frame_kern.o frame.o \
10 helper.o init_task.o irq.o irq_user.o ksyms.o main.o mem.o mem_user.o \
11 physmem.o process.o process_kern.o ptrace.o reboot.o resource.o \
12 sigio_user.o sigio_kern.o signal_kern.o signal_user.o smp.o \
13 syscall_kern.o syscall_user.o sysrq.o sys_call_table.o tempfile.o \
14 time.o time_kern.o tlb.o trap_kern.o trap_user.o uaccess_user.o \
15 um_arch.o umid.o user_util.o
17 obj-
$(CONFIG_BLK_DEV_INITRD
) += initrd_kern.o initrd_user.o
18 obj-
$(CONFIG_GPROF
) += gprof_syms.o
19 obj-
$(CONFIG_GCOV
) += gmon_syms.o
20 obj-
$(CONFIG_TTY_LOG
) += tty_log.o
22 obj-
$(CONFIG_MODE_TT
) += tt
/
23 obj-
$(CONFIG_MODE_SKAS
) += skas
/
25 user-objs-
$(CONFIG_TTY_LOG
) += tty_log.o
27 USER_OBJS
:= $(filter %_user.o
,$(obj-y
)) $(user-objs-y
) config.o helper.o \
28 main.o process.o tempfile.o time.o tty_log.o umid.o user_util.o frame.o
29 USER_OBJS
:= $(foreach file
,$(USER_OBJS
),$(obj
)/$(file
))
31 CFLAGS_frame.o
:= -fno-omit-frame-pointer
33 $(USER_OBJS
) : %.o
: %.c
34 $(CC
) $(USER_CFLAGS
) $(CFLAGS_
$(notdir $@
)) -c
-o
$@
$<
36 QUOTE
= 'my $$config=`cat $(TOPDIR)/.config`; $$config =~ s/"/\\"/g ; $$config =~ s/\n/\\n"\n"/g ; while(<STDIN>) { $$_ =~ s/CONFIG/$$config/; print $$_ }'
38 quiet_cmd_quote
= QUOTE
$@
39 cmd_quote
= $(PERL
) -e
$(QUOTE
) < $< > $@
42 $(obj
)/config.c
: $(src
)/config.c.in
$(TOPDIR
)/.config FORCE
43 $(call if_changed
,quote
)