mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Makefile: Select MACHINE via a variable
This commit is contained in:
1 parent
4c1266dca9
commit
2f787feebf
1 file changed
+5
@@ -16,6 +16,11 @@ SUBDIRSCLEAN=$(addsuffix clean,$(SUBDIRS))
|
|||||||
BUILDDIR = output/
|
BUILDDIR = output/
|
||||||
VERSION_HEADER := version.h
|
VERSION_HEADER := version.h
|
||||||
|
|
||||||
|
ifeq ($(MACHINE),)
|
||||||
|
else
|
||||||
|
CC_FLAGS += -DMACHINE_$(MACHINE)
|
||||||
|
endif
|
||||||
|
|
||||||
all: create_build_dir $(VERSION_HEADER) $(SUBDIRS) $(BUILDDIR)rtlplayground.bin
|
all: create_build_dir $(VERSION_HEADER) $(SUBDIRS) $(BUILDDIR)rtlplayground.bin
|
||||||
|
|
||||||
create_build_dir:
|
create_build_dir:
|
||||||
|
|||||||
Reference in new issue
Block a user