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:
- geky
- Date:
- 2016-04-01
- Revision:
- 57:50b50bd014e1
- Parent:
- 52:8ff8d1d4bc5c
File content as of revision 57:50b50bd014e1:
# 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
CC_FLAGS = -c -g -Wall -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 $(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)
