-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from davidgiven/ab22
Replace the build system... again.
- Loading branch information
Showing
116 changed files
with
2,414 additions
and
2,112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,37 @@ | ||
export OBJ = .obj | ||
export LUA = lua | ||
export CC = gcc | ||
export CXX = g++ | ||
export AR = ar | ||
export CFLAGS = -g -O0 | ||
export LDFLAGS = -g | ||
export NINJAFLAGS = | ||
|
||
all: $(OBJ)/build.ninja | ||
@ninja -f $(OBJ)/build.ninja $(NINJAFLAGS) | ||
export PYTHONHASHSEED = 1 | ||
|
||
#all: $(OBJ)/build.mk | ||
# @+make -f $(OBJ)/build.mk +all | ||
|
||
all: $(OBJ)/build.ninja | ||
@ninja -f $< +all | ||
|
||
clean: | ||
@echo CLEAN | ||
@rm -rf $(OBJ) bin | ||
|
||
lua-files = $(shell find . -name 'build*.lua') $(wildcard build/*.lua) toolchains.lua | ||
$(OBJ)/build.ninja: mkninja.lua Makefile $(lua-files) | ||
@echo MKNINJA | ||
build-files = $(shell find . -name 'build.py') build/*.py config.py | ||
$(OBJ)/build.mk: Makefile $(build-files) | ||
@echo ACKBUILDER | ||
@mkdir -p $(OBJ) | ||
@$(LUA) \ | ||
mkninja.lua \ | ||
> $@ | ||
@python3 -X pycache_prefix=$(OBJ) build/ab2.py -m make -t +all -o $@ build.py | ||
|
||
$(OBJ)/build.ninja: Makefile $(build-files) | ||
@echo ACKBUILDER | ||
@mkdir -p $(OBJ) | ||
@python3 -X pycache_prefix=$(OBJ) build/ab2.py -m ninja -t +all -o $@ \ | ||
-v OBJ,CC,CXX,AR \ | ||
build.py | ||
|
||
.DELETE_ON_ERROR: | ||
.SECONDARY: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from src.toolchains import cgen | ||
|
||
cgen(name="cowfe", srcs=["./cowfe-cgen.bootstrap.c"]) | ||
cgen(name="cowbe", srcs=["./cowbe-cgen.bootstrap.c"]) | ||
cgen(name="cowlink", srcs=["./cowlink-cgen.bootstrap.c"]) | ||
cgen(name="cowwrap", srcs=["./cowwrap.bootstrap.c"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
from build.ab2 import Rule, export | ||
from os.path import * | ||
import config | ||
|
||
export( | ||
name="all", | ||
items={ | ||
"bin/tubeemu": "tools/tubeemu", | ||
"bin/obpemu": "tools/obpemu", | ||
"bin/mkadfs": "tools+mkadfs", | ||
"bin/mkdfs": "tools+mkdfs", | ||
"bin/apout": "third_party/apout", | ||
"bin/emu2": "third_party/emu2", | ||
"bin/zmac": "third_party/zmac", | ||
"bin/cpmemu": "tools/cpmemu", | ||
"bin/ataritosemu": "tools/ataritosemu", | ||
"bin/lx68kemu": "tools/lx68kemu", | ||
"bin/fuzix6303emu": "tools/fuzix6303emu", | ||
"bin/cowdis-tlcs90": "src/cowdis+cowdis-for-tlcs90-with-nncgen", | ||
"bin/cowbdmp": "src/cowbdmp+cowbdmp-with-nncgen", | ||
"bin/basicify": "src/misc+basicify-with-nncgen", | ||
}, | ||
deps=[ | ||
"dist/cpm", | ||
"dist/cpmz", | ||
"examples", | ||
"src/cowasm", | ||
"src/cowbe", | ||
"src/cowfe", | ||
"src/cowlink", | ||
"src/cowwrap", | ||
"tests", | ||
"third_party/djlink+djlink-programs", | ||
] | ||
+ (["dist/msdos"] if config.has_msdos else []) | ||
+ (["dist/ataritos"] if config.has_ataritos else []) | ||
+ (["dist/bbct"] if config.has_bbct else []), | ||
) |
Oops, something went wrong.