Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSDInterface NetworkSocketAPI
Fork of HelloLWIPInterface by
Makefile
- Committer:
- Christopher Haster
- Date:
- 2016-02-27
- Revision:
- 49:e1689f3f04f3
- Parent:
- 48:8a34f47ed1e2
- Child:
- 50:6566cd992ac6
File content as of revision 49:e1689f3f04f3:
# This file was automagically generated by mbed.org. For more information,
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
GCC_BIN =
PROJECT = HelloBSDInterface
OBJECTS = ./main.o ./NetworkSocketAPI/NetworkInterface.o ./NetworkSocketAPI/Socket.o ./NetworkSocketAPI/DnsQuery/DnsQuery.o ./BSDInterface/BSDInterface.o
SYS_OBJECTS =
INCLUDE_PATHS = -I. -I./NetworkSocketAPI -I./NetworkSocketAPI/DnsQuery -I./BSDInterface
LIBRARY_PATHS =
LIBRARIES =
LINKER_SCRIPT = None
###############################################################################
AS = $(GCC_BIN)as
CC = $(GCC_BIN)gcc
CPP = $(GCC_BIN)g++
LD = $(GCC_BIN)g++
OBJCOPY = $(GCC_BIN)objcopy
OBJDUMP = $(GCC_BIN)objdump
SIZE = $(GCC_BIN)size
ifeq ($(HARDFP),1)
FLOAT_ABI = hard
else
FLOAT_ABI = softfp
endif
CC_FLAGS = -c -g -fno-common -fmessage-length=0 -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -MMD -MP
ifeq ($(DEBUG), 1)
CC_FLAGS += -DDEBUG -O0
else
CC_FLAGS += -DNDEBUG -Os
endif
.PHONY: all clean lst size
all: $(PROJECT) size
clean:
rm -f $(PROJECT) $(PROJECT).bin $(PROJECT).elf $(PROJECT).hex $(PROJECT).map $(PROJECT).lst $(OBJECTS) $(DEPS)
.asm.o:
$(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
.s.o:
$(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
.S.o:
$(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
.c.o:
$(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 $(INCLUDE_PATHS) -o $@ $<
.cpp.o:
$(CPP) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu++98 -fno-rtti $(INCLUDE_PATHS) -o $@ $<
$(PROJECT): $(OBJECTS) $(SYS_OBJECTS)
$(LD) $(LD_FLAGS) $(LIBRARY_PATHS) -o $@ $^ $(LIBRARIES) $(LD_SYS_LIBS) $(LIBRARIES) $(LD_SYS_LIBS)
$(PROJECT).elf: $(PROJECT)
cp $< $@
$(PROJECT).bin: $(PROJECT).elf
$(OBJCOPY) -O binary $< $@
$(PROJECT).hex: $(PROJECT).elf
@$(OBJCOPY) -O ihex $< $@
$(PROJECT).lst: $(PROJECT).elf
@$(OBJDUMP) -Sdh $< > $@
lst: $(PROJECT).lst
size: $(PROJECT)
$(SIZE) $(PROJECT)
DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
-include $(DEPS)
