Add some dumb test code
This commit is contained in:
18
sw/test/Makefile
Normal file
18
sw/test/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user