Simon Glass | 3d750d7 | 2011-09-26 14:10:39 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2011 The Chromium OS Authors. |
| 3 | # |
| 4 | # (C) Copyright 2000-2003 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 3d750d7 | 2011-09-26 14:10:39 +0000 | [diff] [blame] | 8 | # |
| 9 | |
Masahiro Yamada | 52f677a | 2013-10-17 17:35:03 +0900 | [diff] [blame] | 10 | obj-y := cpu.o os.o start.o state.o |
Simon Glass | 0d10f29 | 2014-02-27 13:26:17 -0700 | [diff] [blame] | 11 | obj-$(CONFIG_SANDBOX_SDL) += sdl.o |
Simon Glass | 3d750d7 | 2011-09-26 14:10:39 +0000 | [diff] [blame] | 12 | |
Andreas Bießmann | 2f935ce | 2011-12-02 11:53:13 +0100 | [diff] [blame] | 13 | # os.c is build in the system environment, so needs standard includes |
Masahiro Yamada | 0d68fb1 | 2014-02-04 17:24:28 +0900 | [diff] [blame] | 14 | # CFLAGS_REMOVE_os.o cannot be used to drop header include path |
| 15 | quiet_cmd_cc_os.o = CC $(quiet_modtag) $@ |
| 16 | cmd_cc_os.o = $(CC) $(filter-out -nostdinc, \ |
| 17 | $(patsubst -I%,-idirafter%,$(c_flags))) -c -o $@ $< |
| 18 | |
| 19 | $(obj)/os.o: $(src)/os.c FORCE |
| 20 | $(call if_changed_dep,cc_os.o) |
Simon Glass | 0d10f29 | 2014-02-27 13:26:17 -0700 | [diff] [blame] | 21 | $(obj)/sdl.o: $(src)/sdl.c FORCE |
| 22 | $(call if_changed_dep,cc_os.o) |