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 # ****************************************************************************/
17 INCLCMNDIR ?= ../../include
19 include $(TOPCMNDIR)/make.rules
22 CPPFLAGS = -I$(INCLCMNDIR) -I$(INCLBRDDIR) -I.
25 SRCS = build_ffs.c cfg_parse.c create_flash.c create_crc.c
26 OBJS = $(SRCS:%.c=%.o)
31 $(HOSTCC) $(HOSTCFLAGS) $(FLAG) -o $@ $^
37 $(HOSTCC) $(CPPFLAGS) $(HOSTCFLAGS) $(FLAG) -c $< -o $@
46 # Rules for creating the dependency file:
51 Makefile.dep: Makefile
52 $(HOSTCC) -MM $(CPPFLAGS) $(HOSTCFLAGS) $(SRCS) > Makefile.dep
54 # Include dependency file if available: