|
|
1.1 ! root 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: # FIXME review -I ... ! 14: # export NEW_BUILD=1 ! 15: ! 16: TOPCMNDIR ?= ../.. ! 17: INCLCMNDIR ?= ../../include ! 18: ! 19: include $(TOPCMNDIR)/make.rules ! 20: ! 21: ! 22: CPPFLAGS = -I$(INCLCMNDIR) -I$(INCLBRDDIR) -I. ! 23: CFLAGS += $(FLAG) ! 24: ! 25: SRCS = build_ffs.c cfg_parse.c create_flash.c create_crc.c ! 26: OBJS = $(SRCS:%.c=%.o) ! 27: ! 28: all: build_romfs ! 29: ! 30: build_romfs: $(OBJS) ! 31: $(HOSTCC) $(HOSTCFLAGS) $(FLAG) -o $@ $^ ! 32: ! 33: testing: build_romfs ! 34: make -C test ! 35: ! 36: %.o: %.c ! 37: $(HOSTCC) $(CPPFLAGS) $(HOSTCFLAGS) $(FLAG) -c $< -o $@ ! 38: ! 39: clean: ! 40: rm -f build_romfs *.o ! 41: ! 42: distclean: clean ! 43: rm -f Makefile.dep ! 44: ! 45: ! 46: # Rules for creating the dependency file: ! 47: depend: ! 48: rm -f Makefile.dep ! 49: $(MAKE) Makefile.dep ! 50: ! 51: Makefile.dep: Makefile ! 52: $(HOSTCC) -MM $(CPPFLAGS) $(HOSTCFLAGS) $(SRCS) > Makefile.dep ! 53: ! 54: # Include dependency file if available: ! 55: -include Makefile.dep
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.