Add separate makefile for tests

example_keyboards
Fred Sundvik 9 years ago
parent e9a1474bb6
commit 3c6b93a491

@ -1,12 +0,0 @@
CGREEN_LIB = $(BUILDDIR)/cgreen/build-c/src/libcgreen.a
.phony testserial:
testserial: $(CGREEN_LIB)
make -C $(SERIAL_DIR)/tests BUILDDIR=../../$(BUILDDIR)
CGREEN_DIR = "$(CURDIR)/$(SERIAL_DIR)/cgreen/cgreen"
CGREEN_BUILD_DIR = "$(CURDIR)/$(BUILDDIR)/cgreen"
export CGREEN_DIR
export CGREEN_BUILD_DIR
$(CGREEN_LIB):
make -C $(SERIAL_DIR)/cgreen

@ -0,0 +1,13 @@
CGREEN_LIB = $(BUILDDIR)/cgreen/build-c/src/libcgreen.a
CGREEN_DIR = "$(CURDIR)/$(SERIAL_DIR)/cgreen/cgreen"
CGREEN_BUILD_DIR = "$(CURDIR)/$(BUILDDIR)/cgreen"
export CGREEN_DIR
export CGREEN_BUILD_DIR
$(CGREEN_LIB):
make -C $(SERIAL_DIR)/cgreen
.PHONY serialtest:
serialtest : $(CGREEN_LIB)
@echo $(CGREEN_LIB)
make -C $(SERIAL_DIR)/tests BUILDDIR=../../$(BUILDDIR)
Loading…
Cancel
Save