1
0
Fork 0
forked from forks/qmk_firmware

Add separate makefile for tests

This commit is contained in:
Fred Sundvik 2016-02-14 01:31:01 +02:00
parent e9a1474bb6
commit 3c6b93a491
2 changed files with 13 additions and 12 deletions

View file

@ -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

13
serial_link_tests.mk Normal file
View file

@ -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)