modified: Makefile
new file: include/OSAL_Memory.c new file: include/OSAL_Memory.h new file: include/OSAL_Timers.c new file: include/OSAL_Timers.h new file: include/comdef.h new file: include/saddr.c new file: include/saddr.h modified: main.c
This commit is contained in:
7
Makefile
7
Makefile
@@ -8,13 +8,16 @@ INCLUDE_DIRS = -I$(ZSTACK_DIR)
|
||||
|
||||
# Compiler settings
|
||||
CC = sdcc # sdcc compiler
|
||||
CFLAGS = -mmcs51 $(INCLUDE_DIRS) # add include paths to compiler flags
|
||||
CFLAGS = -mmcs51 -DSDCC $(INCLUDE_DIRS) # add include paths to compiler flags
|
||||
|
||||
# Source files (all .c files in the directory)
|
||||
SRC=$(wildcard *.c)
|
||||
|
||||
# Headers
|
||||
HEADERS = main.h zigbee_comm.h sensors/bme280.h sensors/wind_vane.h sensors/rain_gauge.h sensors/anemometer.h config.h include/hal_types.h include/hal_defs.h include/hal_timer.h include/ZComDef.h include/OSAL.h include/i2c.h
|
||||
|
||||
# Object files (replace .c with .o)
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
OBJS = $(SRC:.c=.o)
|
||||
|
||||
# Output file
|
||||
OUTPUT=output.ihx
|
||||
|
||||
Reference in New Issue
Block a user