-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
########################################