]> Joshua Wise's Git repositories - firearm.git/blobdiff - tests/Makefile
Add tests directory.
[firearm.git] / tests / Makefile
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644 (file)
index 0000000..62be4ba
--- /dev/null
@@ -0,0 +1,16 @@
+all: costas.hex
+
+%.o: %.c
+       arm-elf-gcc -c -o $@ $<
+
+%.o: %.S
+       arm-elf-gcc -c -o $@ $<
+
+%.elf: %.o anulib.o script.lds
+       arm-elf-ld -o $@ -T script.lds anulib.o $<
+
+%.bin: %.elf
+       arm-elf-objcopy $< -O binary $@
+
+%.hex: %.bin
+       xxd -ps -c 4 $< | sed -e 's/\(..\)\(..\)\(..\)\(..\)/\4\3\2\1/' > $@
This page took 0.022106 seconds and 4 git commands to generate.