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

New Makefile using relative paths, wildcards and libscpi

parent 26336f58
...@@ -82,7 +82,6 @@ endif ...@@ -82,7 +82,6 @@ endif
# Project, target, sources and paths # Project, target, sources and paths
# #
ROOT = /home/phckopper/Projects/ChibiOSF3-teste
# Define project name here # Define project name here
PROJECT = sacadamini PROJECT = sacadamini
...@@ -124,11 +123,9 @@ LDSCRIPT= $(STARTUPLD)/STM32F303xC.ld ...@@ -124,11 +123,9 @@ LDSCRIPT= $(STARTUPLD)/STM32F303xC.ld
CSRC = $(ALLCSRC) \ CSRC = $(ALLCSRC) \
$(TESTSRC) \ $(TESTSRC) \
$(CHIBIOS)/os/various/syscalls.c \ $(CHIBIOS)/os/various/syscalls.c \
./lib/ssd1306.c \ $(wildcard ./lib/ssd1306/*.c) \
./threads/comm.c \ $(wildcard ./lib/libscpi/*.c) \
./threads/status.c \ $(wildcard ./threads/*.c) \
./threads/display.c \
./threads/sensors.c \
./usb/usbcfg.c \ ./usb/usbcfg.c \
main.c main.c
...@@ -143,7 +140,7 @@ ASMSRC = $(ALLASMSRC) ...@@ -143,7 +140,7 @@ ASMSRC = $(ALLASMSRC)
ASMXSRC = $(ALLXASMSRC) ASMXSRC = $(ALLXASMSRC)
# Inclusion directories. # Inclusion directories.
INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) $(ROOT)/lib $(ROOT)/threads INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) ./lib/libscpi ./lib/ssd1306 ./threads
# Define C warning options here. # Define C warning options here.
CWARN = -Wall -Wextra -Wundef -Wstrict-prototypes 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