Example program for the BSDInterface

Dependencies:   BSDInterface NetworkSocketAPI

Fork of HelloLWIPInterface by NetworkSocketAPI

Committer:
Christopher Haster
Date:
Sat Feb 27 21:03:02 2016 -0600
Revision:
49:e1689f3f04f3
Parent:
48:8a34f47ed1e2
Child:
50:6566cd992ac6
Updated BSDInterface

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Christopher Haster 48:8a34f47ed1e2 1 # This file was automagically generated by mbed.org. For more information,
Christopher Haster 48:8a34f47ed1e2 2 # see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
Christopher Haster 48:8a34f47ed1e2 3
Christopher Haster 48:8a34f47ed1e2 4 GCC_BIN =
Christopher Haster 48:8a34f47ed1e2 5 PROJECT = HelloBSDInterface
Christopher Haster 48:8a34f47ed1e2 6 OBJECTS = ./main.o ./NetworkSocketAPI/NetworkInterface.o ./NetworkSocketAPI/Socket.o ./NetworkSocketAPI/DnsQuery/DnsQuery.o ./BSDInterface/BSDInterface.o
Christopher Haster 48:8a34f47ed1e2 7 SYS_OBJECTS =
Christopher Haster 48:8a34f47ed1e2 8 INCLUDE_PATHS = -I. -I./NetworkSocketAPI -I./NetworkSocketAPI/DnsQuery -I./BSDInterface
Christopher Haster 48:8a34f47ed1e2 9 LIBRARY_PATHS =
Christopher Haster 48:8a34f47ed1e2 10 LIBRARIES =
Christopher Haster 48:8a34f47ed1e2 11 LINKER_SCRIPT = None
Christopher Haster 48:8a34f47ed1e2 12
Christopher Haster 48:8a34f47ed1e2 13 ###############################################################################
Christopher Haster 48:8a34f47ed1e2 14 AS = $(GCC_BIN)as
Christopher Haster 48:8a34f47ed1e2 15 CC = $(GCC_BIN)gcc
Christopher Haster 48:8a34f47ed1e2 16 CPP = $(GCC_BIN)g++
Christopher Haster 49:e1689f3f04f3 17 LD = $(GCC_BIN)g++
Christopher Haster 48:8a34f47ed1e2 18 OBJCOPY = $(GCC_BIN)objcopy
Christopher Haster 48:8a34f47ed1e2 19 OBJDUMP = $(GCC_BIN)objdump
Christopher Haster 48:8a34f47ed1e2 20 SIZE = $(GCC_BIN)size
Christopher Haster 48:8a34f47ed1e2 21
Christopher Haster 48:8a34f47ed1e2 22 ifeq ($(HARDFP),1)
Christopher Haster 48:8a34f47ed1e2 23 FLOAT_ABI = hard
Christopher Haster 48:8a34f47ed1e2 24 else
Christopher Haster 48:8a34f47ed1e2 25 FLOAT_ABI = softfp
Christopher Haster 48:8a34f47ed1e2 26 endif
Christopher Haster 48:8a34f47ed1e2 27
Christopher Haster 48:8a34f47ed1e2 28
Christopher Haster 48:8a34f47ed1e2 29 CC_FLAGS = -c -g -fno-common -fmessage-length=0 -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -MMD -MP
Christopher Haster 48:8a34f47ed1e2 30
Christopher Haster 48:8a34f47ed1e2 31
Christopher Haster 48:8a34f47ed1e2 32 ifeq ($(DEBUG), 1)
Christopher Haster 48:8a34f47ed1e2 33 CC_FLAGS += -DDEBUG -O0
Christopher Haster 48:8a34f47ed1e2 34 else
Christopher Haster 48:8a34f47ed1e2 35 CC_FLAGS += -DNDEBUG -Os
Christopher Haster 48:8a34f47ed1e2 36 endif
Christopher Haster 48:8a34f47ed1e2 37
Christopher Haster 48:8a34f47ed1e2 38 .PHONY: all clean lst size
Christopher Haster 48:8a34f47ed1e2 39
Christopher Haster 49:e1689f3f04f3 40 all: $(PROJECT) size
Christopher Haster 48:8a34f47ed1e2 41
Christopher Haster 48:8a34f47ed1e2 42
Christopher Haster 48:8a34f47ed1e2 43 clean:
Christopher Haster 49:e1689f3f04f3 44 rm -f $(PROJECT) $(PROJECT).bin $(PROJECT).elf $(PROJECT).hex $(PROJECT).map $(PROJECT).lst $(OBJECTS) $(DEPS)
Christopher Haster 48:8a34f47ed1e2 45
Christopher Haster 48:8a34f47ed1e2 46
Christopher Haster 48:8a34f47ed1e2 47 .asm.o:
Christopher Haster 48:8a34f47ed1e2 48 $(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
Christopher Haster 48:8a34f47ed1e2 49 .s.o:
Christopher Haster 48:8a34f47ed1e2 50 $(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
Christopher Haster 48:8a34f47ed1e2 51 .S.o:
Christopher Haster 48:8a34f47ed1e2 52 $(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
Christopher Haster 48:8a34f47ed1e2 53
Christopher Haster 48:8a34f47ed1e2 54 .c.o:
Christopher Haster 48:8a34f47ed1e2 55 $(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 $(INCLUDE_PATHS) -o $@ $<
Christopher Haster 48:8a34f47ed1e2 56
Christopher Haster 48:8a34f47ed1e2 57 .cpp.o:
Christopher Haster 48:8a34f47ed1e2 58 $(CPP) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu++98 -fno-rtti $(INCLUDE_PATHS) -o $@ $<
Christopher Haster 48:8a34f47ed1e2 59
Christopher Haster 48:8a34f47ed1e2 60
Christopher Haster 48:8a34f47ed1e2 61
Christopher Haster 49:e1689f3f04f3 62 $(PROJECT): $(OBJECTS) $(SYS_OBJECTS)
Christopher Haster 49:e1689f3f04f3 63 $(LD) $(LD_FLAGS) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS)
Christopher Haster 48:8a34f47ed1e2 64
Christopher Haster 48:8a34f47ed1e2 65
Christopher Haster 49:e1689f3f04f3 66 $(PROJECT).elf: $(PROJECT)
Christopher Haster 49:e1689f3f04f3 67 cp $< $@
Christopher Haster 49:e1689f3f04f3 68
Christopher Haster 48:8a34f47ed1e2 69 $(PROJECT).bin: $(PROJECT).elf
Christopher Haster 48:8a34f47ed1e2 70 $(OBJCOPY) -O binary $< $@
Christopher Haster 48:8a34f47ed1e2 71
Christopher Haster 48:8a34f47ed1e2 72 $(PROJECT).hex: $(PROJECT).elf
Christopher Haster 48:8a34f47ed1e2 73 @$(OBJCOPY) -O ihex $< $@
Christopher Haster 48:8a34f47ed1e2 74
Christopher Haster 48:8a34f47ed1e2 75 $(PROJECT).lst: $(PROJECT).elf
Christopher Haster 48:8a34f47ed1e2 76 @$(OBJDUMP) -Sdh $< > $@
Christopher Haster 48:8a34f47ed1e2 77
Christopher Haster 48:8a34f47ed1e2 78 lst: $(PROJECT).lst
Christopher Haster 48:8a34f47ed1e2 79
Christopher Haster 49:e1689f3f04f3 80 size: $(PROJECT)
Christopher Haster 49:e1689f3f04f3 81 $(SIZE) $(PROJECT)
Christopher Haster 48:8a34f47ed1e2 82
Christopher Haster 48:8a34f47ed1e2 83 DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
Christopher Haster 48:8a34f47ed1e2 84 -include $(DEPS)
Christopher Haster 48:8a34f47ed1e2 85
Christopher Haster 48:8a34f47ed1e2 86
Christopher Haster 48:8a34f47ed1e2 87