2 # Copyright (C) 2002 - 2003 Jeff Dike (jdike@addtoit.com)
3 # Licensed under the GPL
8 clean-files
:= unmap_tmp.o
10 obj-y
= exec_kern.o exec_user.o gdb.o ksyms.o mem.o mem_user.o process_kern.o \
11 syscall_kern.o syscall_user.o time.o tlb.o tracer.o trap_user.o \
12 uaccess.o uaccess_user.o
14 obj-
$(CONFIG_PT_PROXY
) += gdb_kern.o ptproxy
/
16 USER_OBJS
:= gdb.o time.o tracer.o
18 include arch
/um
/scripts
/Makefile.rules
20 UNMAP_CFLAGS
:= $(patsubst -pg
-DPROFILING
,,$(USER_CFLAGS
))
21 UNMAP_CFLAGS
:= $(patsubst -fprofile-arcs
-ftest-coverage
,,$(UNMAP_CFLAGS
))
23 #XXX: partially copied from arch/um/scripts/Makefile.rules
24 $(obj
)/unmap.o
: c_flags
= -Wp
,-MD
,$(depfile
) $(UNMAP_CFLAGS
)
26 $(obj
)/unmap_fin.o
: $(obj
)/unmap.o
27 $(LD
) -r
-o
$(obj
)/unmap_tmp.o
$< $(shell $(CC
) -print-file-name
=libc.a
)
28 $(OBJCOPY
) $(obj
)/unmap_tmp.o
$@
-G switcheroo