mqtt/Makefile
A.M. Rowsell 049573ad4b
Added documentation, removed library from Makefile
Making the mqtt as a .a library is a project for a later date.
The recipe was broken and so was removed to avoid confusion.

Added the Mozilla License header to the new files. Also a few
small corrections and additions to the Doxygen documentation.

Signed-off-by: A.M. Rowsell <amrowsell@frozenelectronics.ca>
2019-01-22 12:16:39 -05:00

25 lines
788 B
Makefile

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
P=main
CC=xtensa-lx106-elf-gcc
AR=xtensa-lx106-elf-ar
LDLIBS=-nostdlib -ggdb -Wl,-Map=output.map -Wl,--start-group -lm -lc -lhal -lpp -llwip -lphy -lnet80211 -lwpa -lat -lwpa2 -lmain -Wl,--end-group -lgcc
CFLAGS= -I. -mlongcalls -std=gnu11 -Wall
LDFLAGS=-Teagle.app.v6.ld
OBJ=main.o mqtt.o onewire.o
DEPS=main.h mqtt.h onewire.h
$(P)-0x00000.bin: $(P)
esptool.py elf2image $^
$(P): $(OBJ)
%.o: %.c $(DEPS)
flash: $(P)-0x00000.bin
esptool.py --port /dev/feather0 write_flash 0 $(P)-0x00000.bin 0x10000 $(P)-0x10000.bin
clean:
rm -f $(P) $(OBJ) $(P)-0x00000.bin $(P)-0x10000.bin *~