Tests for BSDInterface

Dependencies:   BSDInterface NetworkSocketAPI NSAPITests

Committer:
bridadan
Date:
Thu Mar 03 21:19:31 2016 +0000
Revision:
4:53abe3b28740
Parent:
2:3515c4f23398
Updating dependencies and fixing main function

Who changed what in which revision?

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