blob: ad842964707a9312ba85ac051b7461b3edec2732 [file] [log] [blame]
Gennady Sharapovf45d9fc2006-01-18 17:42:45 -08001#
Linus Torvalds1da177e2005-04-16 15:20:36 -07002# Copyright (C) 2002 - 2004 Jeff Dike (jdike@addtoit.com)
3# Licensed under the GPL
4#
5
Gennady Sharapovabaf6972006-01-18 17:42:46 -08006obj-y := clone.o exec_kern.o mem.o mmu.o process_kern.o \
Gennady Sharapovea2ba7d2006-01-08 01:01:31 -08007 syscall.o tlb.o uaccess.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Gennady Sharapovabaf6972006-01-18 17:42:46 -08009USER_OBJS := clone.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11include arch/um/scripts/Makefile.rules
Bodo Stroesser9786a8f2005-07-07 17:56:50 -070012
13# clone.o is in the stub, so it can't be built with profiling
Paolo 'Blaisorblade' Giarrusso275e6e12006-05-01 12:16:04 -070014# GCC hardened also auto-enables -fpic, but we need %ebx so it can't work ->
15# disable it
16
17CFLAGS_clone.o := $(CFLAGS_NO_HARDENING)
18
19# since we're setting c_flags we _must_ add $(CFLAGS_$(*F).o).
20
21$(obj)/clone.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(*F).o)