added an x86 test for the ringbuffer
This commit is contained in:
18
test/Makefile
Normal file
18
test/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
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 $@ $<
|
Reference in New Issue
Block a user