avrinput/x86_tests/Makefile
2019-04-10 11:52:35 +02:00

19 lines
238 B
Makefile

CC=gcc
CFLAG= -g -O
tests= test_ringbuffer.test
objects= ../ringbuffer.o
all: clean $(tests)
clean:
-rm $(objects)
-rm $(tests)
%.test: %.c $(objects)
$(CC) $(CFLAG) $(objects) -o $@ $<
./$@
%.o: %.c
$(CC) $(CFLAG) -c -o $@ $<