Files
zigbee_weather_station/Makefile
T

15 lines
390 B
Makefile
Raw Normal View History

CC = msp430-gcc
CFLAGS = -Wall -Os
LIBS = -lZStack -lhal
SRCS = main.c zigbee_comm.c sensors/bme280.c sensors/wind_vane.c sensors/rain_gauge.c sensors/anemometer.c
HEADERS = main.h zigbee_comm.h sensors/bme280.h sensors/wind_vane.h sensors/rain_gauge.h sensors/anemometer.h config.h
all: main
main: $(SRCS) $(HEADERS)
$(CC) $(CFLAGS) $(SRCS) $(LIBS) -o main.elf
clean:
rm -f main.elf