From bac4cada00c74e232ca2a38666a939ebc042e621 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 26 Jun 2014 20:19:59 +0200 Subject: [PATCH] mk: add proper files in makefile --- Makefile | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 8ba697b..ade8bae 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,26 @@ -TARGET = imu +TARGET = main -# repertoire des modules -AVERSIVE_DIR =../..# VALUE, absolute or relative path : example ../.. # +AVERSIVE_DIR ?= ../.. # List C source files here. (C dependencies are automatically generated.) -# SRC = $(TARGET).c bma150.c itg3200.c ak8500.c i2c_helper.c vector.c matrix.c MadgwickAHRS.c mpu6050.c -SRC = $(TARGET).c i2c_helper.c mpu6050.c MadgwickAHRS.c i2cm_sw.c +SRC = $(TARGET).c +SRC += commands.c +SRC += commands_gen.c +SRC += cmdline.c +SRC += eeprom_config.c +SRC += i2cm_sw.c +SRC += imu.c +SRC += mpu6050.c +SRC += MadgwickAHRS.c +SRC += i2c_helper.c +SRC += byteordering.c +SRC += fat.c +SRC += sd_main.c +SRC += partition.c +SRC += sd_raw.c -# List Assembler source files here. -# Make them always end in a capital .S. Files ending in a lowercase .s -# will not be considered source files but generated files (assembler -# output from the compiler), and will be deleted upon "make clean"! -# Even though the DOS/Win* filesystem matches both .s and .S the same, -# it will preserve the spelling of the filenames, and gcc itself does -# care about how the name is spelled on its command-line. -ASRC = + +CFLAGS += -W -Wall -Werror ######################################## -- 2.39.5