Add some dumb test code

This commit is contained in:
Byron Lathi
2025-11-09 17:33:49 -08:00
parent abc6ea65c5
commit 1a33af4ddf
3 changed files with 122 additions and 0 deletions

18
sw/test/Makefile Normal file
View File

@@ -0,0 +1,18 @@
BIN=pcie_dma_test
SRCS=$(wildcard *.c)
OBJS=$(SRCS:.c=.o)
all: $(BIN)
$(BIN): $(OBJS)
gcc -o $@ $(CFLAGS) $(LDFLAGS) $^
%.o: %.c
gcc -c -o $@ $(CFLAGS) $<
.PHONY: clean
clean:
rm -rf $(OBJS)
rm -rf $(BIN)