Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven authored May 22, 2024
2 parents 4912280 + a758fb7 commit 22e9955
Show file tree
Hide file tree
Showing 239 changed files with 41,863 additions and 23,041 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: C/C++ CI

on: [push]
on: [push, pull_request]

jobs:
build-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: apt update
run: sudo apt update
- name: add-apt-repository
run: sudo add-apt-repository ppa:vriviere/ppa -y
- name: apt
run: sudo apt install ninja-build lua5.1 pasmo libz80ex-dev flex libbsd-dev libreadline-dev bison binutils-arm-linux-gnueabihf binutils-i686-linux-gnu binutils-powerpc-linux-gnu binutils-m68k-atari-mint binutils-m68k-linux-gnu qemu-user gpp 64tass libfl-dev nasm
run: sudo apt install moreutils lua5.1 libz80ex-dev flex libbsd-dev libreadline-dev bison binutils-arm-linux-gnueabihf binutils-i686-linux-gnu binutils-powerpc-linux-gnu binutils-m68k-atari-mint binutils-m68k-linux-gnu qemu-user gpp 64tass libfl-dev nasm
- name: make
run: make NINJAFLAGS=-k1
run: make -j$(nproc)

19 changes: 7 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
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)
.PHONY: all
all: +all

clean:
@echo CLEAN
@rm -rf $(OBJ) bin
TARGETS = +all
include build/ab.mk

lua-files = $(shell find . -name 'build*.lua') $(wildcard build/*.lua) toolchains.lua
$(OBJ)/build.ninja: mkninja.lua Makefile $(lua-files)
@echo MKNINJA
@mkdir -p $(OBJ)
@$(LUA) \
mkninja.lua \
> $@
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,6 @@ turn contains a copy of John R. Hauser's softfloat library, distributable under
a custom but MIT-like license; see `third_party/musashi/softfloat/README.txt`
for the text.

`third_party/libz80ex` contains a copy of the z80ex Z80 emulation library,
written [email protected]. It is distributable under the terms of the
GPL GPL 2.0 license; see `third_party/z80ex/COPYING` for the text.
20 changes: 0 additions & 20 deletions bootstrap/build.lua

This file was deleted.

6 changes: 6 additions & 0 deletions bootstrap/build.py
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"])
Loading

0 comments on commit 22e9955

Please sign in to comment.