avrinput/x86_tests/Makefile

19 lines
238 B
Makefile
Raw Permalink Normal View History

2019-04-10 09:48:04 +00:00
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 $@ $<