fix compilation with latest aversive
[protos/xbee-avr.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..c7ea9a7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+TARGET = main
+
+AVERSIVE_DIR ?= ../..
+
+# List C source files here. (C dependencies are automatically generated.)
+SRC = $(TARGET).c
+SRC += spi_servo.c
+SRC += commands.c
+SRC += commands_gen.c
+SRC += rc_proto.c
+SRC += xbee_atcmd.c
+SRC += xbee.c
+SRC += xbee_neighbor.c
+SRC += xbee_proto.c
+SRC += xbee_stats.c
+SRC += callout.c
+SRC += parse_neighbor.c
+SRC += parse_atcmd.c
+SRC += parse_monitor.c
+SRC += cmdline.c
+
+CFLAGS += -W -Wall -Werror
+
+########################################
+
+-include .aversive_conf
+include $(AVERSIVE_DIR)/mk/aversive_project.mk