|
|
1.1 ! root 1: # ***************************************************************************** ! 2: # * Copyright (c) 2004, 2011 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$(TOP)/clients/net-snk/include/ -I$(TOP)/lib/libc/include/ ! 20: CFLAGS += -I$(TOP)/lib/libhvcall ! 21: CFLAGS += -fno-builtin -ffreestanding -fno-stack-protector -msoft-float -nostdinc -Wall ! 22: ! 23: SRCS = module_entry.c veth.c ! 24: ! 25: OBJS = $(SRCS:.c=.o) $(TOP)/lib/libhvcall/hvcall.o ! 26: ! 27: all: Makefile.dep net_veth.bin ! 28: ! 29: net_veth.o: $(OBJS) ! 30: $(LD) $(LDFLAGS) $^ -o $@ -T veth.lds -N ! 31: ! 32: net_veth.bin: net_veth.o ! 33: $(OBJCOPY) -O binary $^ $@ ! 34: clean: ! 35: $(RM) -f *.o *.a *.i *.bin ! 36: ! 37: distclean : clean ! 38: rm -f Makefile.dep ! 39: ! 40: ! 41: # Rules for creating the dependency file: ! 42: depend: ! 43: $(CC) -MM $(CFLAGS) $(SRCS) > Makefile.dep ! 44: Makefile.dep: ! 45: $(MAKE) depend ! 46: ! 47: # Include dependency file if available: ! 48: ifneq (,$(wildcard Makefile.dep)) ! 49: include Makefile.dep ! 50: endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.