Fix badge, add missing test makefile
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
.. |Build Status| image:: https://travis-ci.org/akesterson/piquant.svg?branch=travisci
|
[](https://travis-ci.org/akesterson/piquant)
|
||||||
:target: https://travis-ci.org/akesterson/piquant
|
|
||||||
|
|
||||||
Piquant
|
Piquant
|
||||||
====
|
====
|
||||||
|
|||||||
18
tests/Makefile
Normal file
18
tests/Makefile
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
%.o: %.c
|
||||||
|
gcc -I../src -ansi -Wall -Werror -c -o $@ $<
|
||||||
|
for file in $$(cat $$(echo $@ | sed 's/\.o$$//').deps); do \
|
||||||
|
gcc -I../src -ansi -Wall -Werror -c -o ./$${file}.o ../src/$$file.c ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
%.elf: %.o
|
||||||
|
gcc -o $@ $^ $$(cat $$(echo $@ | sed 's/\.elf$$//').deps | sed 's/$$/\.o/g')
|
||||||
|
|
||||||
|
|
||||||
|
all_targets:=$(shell ls *c | sed 's/\.c$$/\.elf/g')
|
||||||
|
|
||||||
|
all: $(all_targets)
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -f *o
|
||||||
|
rm -f *elf
|
||||||
Reference in New Issue
Block a user