diff --git a/.gitignore b/.gitignore index adf8f72..606d549 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,61 @@ -# ---> Go -# If you prefer the allow list template instead of the deny list, see community template: -# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore -# -# Binaries for programs and plugins -*.exe -*.exe~ -*.dll -*.so -*.dylib +# http://www.gnu.org/software/automake -# Test binary, built with `go test -c` -*.test +Makefile.in +/ar-lib +/mdate-sh +/py-compile +/test-driver +/ylwrap +.deps/ +.dirstamp -# Output of the go coverage tool, specifically when used with LiteIDE -*.out +# http://www.gnu.org/software/autoconf -# Dependency directories (remove the comment below to include it) -# vendor/ +autom4te.cache +/autoscan.log +/autoscan-*.log +/aclocal.m4 +/compile +/config.cache +/config.guess +/config.h.in +/config.log +/config.status +/config.sub +/configure +/configure.scan +/depcomp +/install-sh +/missing +/stamp-h1 -# Go workspace file -go.work +# Automake aux directory +/config +# Autoreconf backup of configure +/configure~ + +# https://www.gnu.org/software/libtool/ + +/ltmain.sh + +# http://www.gnu.org/software/texinfo + +/texinfo.tex + +# http://www.gnu.org/software/m4/ + +m4/libtool.m4 +m4/ltoptions.m4 +m4/ltsugar.m4 +m4/ltversion.m4 +m4/lt~obsolete.m4 + +# Generated Makefile +# (meta build system like autotools, +# can automatically generate from config.status script +# (which is called by configure script)) +Makefile + +# Object files +*.o diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..1cb59ff --- /dev/null +++ b/Makefile.am @@ -0,0 +1,2 @@ +bin_PROGRAMS = emu +emu_SOURCES = src/main.c diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..205ad1e --- /dev/null +++ b/configure.ac @@ -0,0 +1,25 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.00]) +AC_INIT([emu], [v1.0]) +AC_CONFIG_SRCDIR([src/main.c]) +AC_CONFIG_AUX_DIR([config]) + +# Initialize automake +AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) + +# Checks for programs. +AC_PROG_CC + +# Checks for libraries. + +# Checks for header files. +AC_CHECK_HEADERS([stdint.h]) + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..499c078 --- /dev/null +++ b/src/main.c @@ -0,0 +1,5 @@ +#include "stdint.h" + +int main(int argc, char* argv[]) { + return (uint8_t)0; +}