This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
piquant/tests/Makefile

19 lines
406 B
Makefile
Raw Normal View History

2016-03-27 12:19:45 -07:00
%.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