summaryrefslogtreecommitdiff
path: root/n/asserv/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'n/asserv/src/Makefile')
-rw-r--r--n/asserv/src/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/n/asserv/src/Makefile b/n/asserv/src/Makefile
index 474512c..1ba351e 100644
--- a/n/asserv/src/Makefile
+++ b/n/asserv/src/Makefile
@@ -1,7 +1,6 @@
-#PROGS = test_pwm
-#SOURCES = test_pwm.c pwm.c
-PROGS = asserv
-SOURCES = motor.c main.c
+PROGS = test_pwm asserv
+asserv_OBJECTS = motor.o main.o rs232.o proto.o
+test_pwm_OBJECTS = test_pwm.o pwm.o rs232.o proto.o
DOC =
EXTRACTDOC =
MODULES = n/avr/rs232 n/avr/proto n/avr/utils
@@ -13,6 +12,10 @@ MCU_TARGET = atmega128
OPTIMIZE = -O2
DEFS =
-LIBS =
+LDLIBS =
include Makefile.avr
+
+asserv.elf: $(asserv_OBJECTS)
+
+test_pwm.elf: $(test_pwm_OBJECTS)