Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / llfw / io_generic / Makefile.inc
1 # *****************************************************************************
2 # * Copyright (c) 2004, 2008 IBM Corporation
3 # * All rights reserved.
4 # * This program and the accompanying materials
5 # * are made available under the terms of the BSD License
6 # * which accompanies this distribution, and is available at
7 # * http://www.opensource.org/licenses/bsd-license.php
8 # *
9 # * Contributors:
10 # *     IBM Corporation - initial implementation
11 # ****************************************************************************/
12
13 IOGENERICDIR    = $(LLFWCMNDIR)/io_generic
14
15 IO_GENERIC_SRC_ASM      = io_generic.S
16 IO_GENERIC_SRC_C        = 
17
18 IO_GENERIC_SRCS         = $(IO_GENERIC_SRC_ASM:%=$(IOGENERICDIR)/%) \
19                           $(IO_GENERIC_SRC_C:%=$(IOGENERICDIR)/%)
20 IO_GENERIC_OBJ_ASM      = $(IO_GENERIC_SRC_ASM:%.S=%.o)
21 IO_GENERIC_OBJ_C        = $(IO_GENERIC_SRC_C:%.c=%.o)
22
23
24 io_generic_lib.o:       $(IO_GENERIC_OBJ_ASM) $(IO_GENERIC_OBJ_C)
25         $(LD) $(LDFLAGS) $^ -o $@ -r
26
27
28 %.o: $(IOGENERICDIR)/%.c
29         $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
30
31 %.o: $(IOGENERICDIR)/%.S
32         $(CC) $(CPPFLAGS) $(ASFLAGS) -c $< -o $@
33
34
35 LLFW_CLEAN_TARGETS      += clean_io_generic
36 .PHONY : clean_io_generic
37 clean_io_generic:
38         rm -f $(IO_GENERIC_OBJ_C) $(IO_GENERIC_OBJ_ASM) io_generic_lib.o