Example program for the BSDInterface

Dependencies:   BSDInterface NetworkSocketAPI

Fork of HelloLWIPInterface by NetworkSocketAPI

Committer:
geky
Date:
Fri Apr 01 18:29:24 2016 +0000
Revision:
57:50b50bd014e1
Parent:
52:8ff8d1d4bc5c
Update NSAPI

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 52:8ff8d1d4bc5c 22 CC_FLAGS = -c -g -Wall -MMD -MP
Christopher Haster 48:8a34f47ed1e2 23
Christopher Haster 48:8a34f47ed1e2 24
Christopher Haster 48:8a34f47ed1e2 25 ifeq ($(DEBUG), 1)
Christopher Haster 48:8a34f47ed1e2 26 CC_FLAGS += -DDEBUG -O0
Christopher Haster 48:8a34f47ed1e2 27 else
Christopher Haster 48:8a34f47ed1e2 28 CC_FLAGS += -DNDEBUG -Os
Christopher Haster 48:8a34f47ed1e2 29 endif
Christopher Haster 48:8a34f47ed1e2 30
Christopher Haster 48:8a34f47ed1e2 31 .PHONY: all clean lst size
Christopher Haster 48:8a34f47ed1e2 32
Christopher Haster 49:e1689f3f04f3 33 all: $(PROJECT) size
Christopher Haster 48:8a34f47ed1e2 34
Christopher Haster 48:8a34f47ed1e2 35
Christopher Haster 48:8a34f47ed1e2 36 clean:
Christopher Haster 49:e1689f3f04f3 37 rm -f $(PROJECT) $(PROJECT).bin $(PROJECT).elf $(PROJECT).hex $(PROJECT).map $(PROJECT).lst $(OBJECTS) $(DEPS)
Christopher Haster 48:8a34f47ed1e2 38
Christopher Haster 48:8a34f47ed1e2 39
Christopher Haster 48:8a34f47ed1e2 40 .asm.o:
Christopher Haster 48:8a34f47ed1e2 41 $(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
Christopher Haster 48:8a34f47ed1e2 42 .s.o:
Christopher Haster 48:8a34f47ed1e2 43 $(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
Christopher Haster 48:8a34f47ed1e2 44 .S.o:
Christopher Haster 48:8a34f47ed1e2 45 $(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
Christopher Haster 48:8a34f47ed1e2 46
Christopher Haster 48:8a34f47ed1e2 47 .c.o:
Christopher Haster 50:6566cd992ac6 48 $(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 $(INCLUDE_PATHS) -o $@ $<
Christopher Haster 48:8a34f47ed1e2 49
Christopher Haster 48:8a34f47ed1e2 50 .cpp.o:
Christopher Haster 50:6566cd992ac6 51 $(CPP) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu++98 $(INCLUDE_PATHS) -o $@ $<
Christopher Haster 48:8a34f47ed1e2 52
Christopher Haster 48:8a34f47ed1e2 53
Christopher Haster 48:8a34f47ed1e2 54
Christopher Haster 49:e1689f3f04f3 55 $(PROJECT): $(OBJECTS) $(SYS_OBJECTS)
Christopher Haster 49:e1689f3f04f3 56 $(LD) $(LD_FLAGS) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS)
Christopher Haster 48:8a34f47ed1e2 57
Christopher Haster 48:8a34f47ed1e2 58
Christopher Haster 49:e1689f3f04f3 59 $(PROJECT).elf: $(PROJECT)
Christopher Haster 49:e1689f3f04f3 60 cp $< $@
Christopher Haster 49:e1689f3f04f3 61
Christopher Haster 48:8a34f47ed1e2 62 $(PROJECT).bin: $(PROJECT).elf
Christopher Haster 48:8a34f47ed1e2 63 $(OBJCOPY) -O binary $< $@
Christopher Haster 48:8a34f47ed1e2 64
Christopher Haster 48:8a34f47ed1e2 65 $(PROJECT).hex: $(PROJECT).elf
Christopher Haster 48:8a34f47ed1e2 66 @$(OBJCOPY) -O ihex $< $@
Christopher Haster 48:8a34f47ed1e2 67
Christopher Haster 48:8a34f47ed1e2 68 $(PROJECT).lst: $(PROJECT).elf
Christopher Haster 48:8a34f47ed1e2 69 @$(OBJDUMP) -Sdh $< > $@
Christopher Haster 48:8a34f47ed1e2 70
Christopher Haster 48:8a34f47ed1e2 71 lst: $(PROJECT).lst
Christopher Haster 48:8a34f47ed1e2 72
Christopher Haster 49:e1689f3f04f3 73 size: $(PROJECT)
Christopher Haster 49:e1689f3f04f3 74 $(SIZE) $(PROJECT)
Christopher Haster 48:8a34f47ed1e2 75
Christopher Haster 48:8a34f47ed1e2 76 DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
Christopher Haster 48:8a34f47ed1e2 77 -include $(DEPS)
Christopher Haster 48:8a34f47ed1e2 78
Christopher Haster 48:8a34f47ed1e2 79
Christopher Haster 48:8a34f47ed1e2 80