Skip to content
Snippets Groups Projects
Commit a0afc594 authored by Georg von Zengen's avatar Georg von Zengen
Browse files

makefile.inc is now better includable

parent 1dcbaa85
No related branches found
No related tags found
No related merge requests found
Pipeline #
CFLAGS+=-I"Inc" -I"dw1000/Inc/"
SRC+=$(wildcard dw1000/Src/*.c)
\ No newline at end of file
DRIVER_PATH=$(dir $(lastword $(MAKEFILE_LIST)))
SRC_DIR=$(DRIVER_PATH)Src
INC_DIR=$(DRIVER_PATH)Inc
DRIVER_SOURCES=$(notdir $(wildcard Src/*.c))
CFLAGS+=-I$(INC_DIR)
CXXFLAGS+=-I$(INC_DIR)
OBJECTS+=$(addprefix $(BUILD_DIR)/,$(DRIVER_SOURCES:%.c=%.o))
$(BUILD_DIR)/%.o : $(SRC_DIR)/%.c
$(CC) $(CFLAGS) -o $@ -c $<
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment