|
|
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: ifndef TOP ! 14: TOP = $(shell while ! test -e make.rules; do cd .. ; done; pwd) ! 15: export TOP ! 16: endif ! 17: include $(TOP)/make.rules ! 18: ! 19: CFLAGS = -O2 -I. -I../common -I$(TOP)/clients/net-snk/include -I$(TOP)/lib/libc/include -fno-builtin -ffreestanding -msoft-float -Wall -nostdinc ! 20: ! 21: SRCS = bcm57xx.c ! 22: ! 23: COMMONOBJS = ../common/module_entry.o ! 24: ! 25: OBJS += $(COMMONOBJS) $(SRCS:.c=.o) ! 26: ! 27: ! 28: all: Makefile.dep net_bcm57xx.bin ! 29: ! 30: bcm57xx_net.o: $(OBJS) ! 31: $(LD) $(LDFLAGS) $^ -o $@ -T ../common/module.lds -N ! 32: ! 33: net_bcm57xx.bin: bcm57xx_net.o ! 34: $(OBJCOPY) -O binary $^ $@ ! 35: ! 36: # A rule for making the object files in the common directory: ! 37: ../common/%.o: ../common/%.c ! 38: $(MAKE) -C ../common all ! 39: ! 40: ! 41: clean: ! 42: $(RM) -f *.o *.a *.i *.bin ! 43: ! 44: distclean : clean ! 45: rm -f Makefile.dep ! 46: ! 47: ! 48: # Rules for creating the dependency file: ! 49: depend: ! 50: $(CC) -MM $(CFLAGS) $(SRCS) > Makefile.dep ! 51: Makefile.dep: ! 52: $(MAKE) depend ! 53: ! 54: # Include dependency file if available: ! 55: ifneq (,$(wildcard Makefile.dep)) ! 56: include Makefile.dep ! 57: endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.