Commit 9440a974 authored by Pedro Henrique Kopper's avatar Pedro Henrique Kopper

New Makefile using relative paths, wildcards and libscpi

parent 26336f58
......@@ -82,7 +82,6 @@ endif
# Project, target, sources and paths
#
ROOT = /home/phckopper/Projects/ChibiOSF3-teste
# Define project name here
PROJECT = sacadamini
......@@ -124,11 +123,9 @@ LDSCRIPT= $(STARTUPLD)/STM32F303xC.ld
CSRC = $(ALLCSRC) \
$(TESTSRC) \
$(CHIBIOS)/os/various/syscalls.c \
./lib/ssd1306.c \
./threads/comm.c \
./threads/status.c \
./threads/display.c \
./threads/sensors.c \
$(wildcard ./lib/ssd1306/*.c) \
$(wildcard ./lib/libscpi/*.c) \
$(wildcard ./threads/*.c) \
./usb/usbcfg.c \
main.c
......@@ -143,7 +140,7 @@ ASMSRC = $(ALLASMSRC)
ASMXSRC = $(ALLXASMSRC)
# Inclusion directories.
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) $(ROOT)/lib $(ROOT)/threads
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) ./lib/libscpi ./lib/ssd1306 ./threads
# Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment