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
10 # * IBM Corporation - initial implementation
11 # ****************************************************************************/
13 IOGENERICDIR = $(LLFWCMNDIR)/io_generic
15 IO_GENERIC_SRC_ASM = io_generic.S
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)
24 io_generic_lib.o: $(IO_GENERIC_OBJ_ASM) $(IO_GENERIC_OBJ_C)
25 $(LD) $(LDFLAGS) $^ -o $@ -r
28 %.o: $(IOGENERICDIR)/%.c
29 $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
31 %.o: $(IOGENERICDIR)/%.S
32 $(CC) $(CPPFLAGS) $(ASFLAGS) -c $< -o $@
35 LLFW_CLEAN_TARGETS += clean_io_generic
36 .PHONY : clean_io_generic
38 rm -f $(IO_GENERIC_OBJ_C) $(IO_GENERIC_OBJ_ASM) io_generic_lib.o