Add doc makefiles

This commit is contained in:
Michael Hayes
2011-08-29 02:58:47 +00:00
parent 1cfff438a0
commit 7ee5ceba5d
110 changed files with 1819 additions and 693 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ pacer.o: ../../utils/pacer.c ../../drivers/avr/system.h ../../drivers/avr/timer.
# Link: create ELF output file from object files.
tdmdemo1.out: ledmat.o pacer.o pio.o system.o tdmdemo1.o timer.o
tdmdemo1.out: tdmdemo1.o pio.o system.o timer.o ledmat.o pacer.o
$(CC) $(CFLAGS) $^ -o $@ -lm
$(SIZE) $@
+15 -14
View File
@@ -14,38 +14,39 @@ all: tdmdemo1
# Compile: create object files from C source files.
timer-test.o: ../../drivers/test/timer.c ../../drivers/test/timer.h ../../drivers/test/system.h
tdmdemo1-test.o: tdmdemo1.c ../../drivers/ledmat.h ../../drivers/test/system.h ../../utils/pacer.h
$(CC) -c $(CFLAGS) $< -o $@
pio-test.o: ../../drivers/test/pio.c
$(CC) -c $(CFLAGS) $< -o $@
pacer-test.o: ../../utils/pacer.c ../../drivers/test/timer.h ../../utils/pacer.h ../../drivers/test/system.h
$(CC) -c $(CFLAGS) $< -o $@
ledmat-test.o: ../../drivers/ledmat.c ../../drivers/test/avrtest.h ../../drivers/test/pio.h ../../drivers/ledmat.h ../../drivers/test/system.h
$(CC) -c $(CFLAGS) $< -o $@
system-test.o: ../../drivers/test/system.c ../../drivers/test/pio.h ../../drivers/test/avrtest.h ../../drivers/test/mgetkey.h ../../drivers/test/system.h
ledmat-test.o: ../../drivers/ledmat.c ../../drivers/ledmat.h ../../drivers/test/avrtest.h ../../drivers/test/pio.h ../../drivers/test/system.h
$(CC) -c $(CFLAGS) $< -o $@
mgetkey-test.o: ../../drivers/test/mgetkey.c ../../drivers/test/mgetkey.h
$(CC) -c $(CFLAGS) $< -o $@
tdmdemo1-test.o: tdmdemo1.c ../../utils/pacer.h ../../drivers/ledmat.h ../../drivers/test/system.h
pio-test.o: ../../drivers/test/pio.c
$(CC) -c $(CFLAGS) $< -o $@
system-test.o: ../../drivers/test/system.c ../../drivers/test/avrtest.h ../../drivers/test/mgetkey.h ../../drivers/test/pio.h ../../drivers/test/system.h
$(CC) -c $(CFLAGS) $< -o $@
timer-test.o: ../../drivers/test/timer.c ../../drivers/test/system.h ../../drivers/test/timer.h
$(CC) -c $(CFLAGS) $< -o $@
pacer-test.o: ../../utils/pacer.c ../../drivers/test/system.h ../../drivers/test/timer.h ../../utils/pacer.h
$(CC) -c $(CFLAGS) $< -o $@
# Link: create executable file from object files.
tdmdemo1: timer-test.o pio-test.o pacer-test.o ledmat-test.o system-test.o mgetkey-test.o tdmdemo1-test.o
tdmdemo1: tdmdemo1-test.o ledmat-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o pacer-test.o
$(CC) $(CFLAGS) $^ -o $@ -lrt
# Clean: delete derived files.
.PHONY: clean
clean:
-$(DEL) tdmdemo1 timer-test.o pio-test.o pacer-test.o ledmat-test.o system-test.o mgetkey-test.o tdmdemo1-test.o
-$(DEL) tdmdemo1 tdmdemo1-test.o ledmat-test.o mgetkey-test.o pio-test.o system-test.o timer-test.o pacer-test.o