Giter Site home page Giter Site logo

Comments (3)

michaelcmartin avatar michaelcmartin commented on June 17, 2024

I've been digging around this a little bit so far, and this is a simple enough project that I think simple Makefiles are the way to go - were it not for the _68000.c files. this could be built with yacc macross_6502.y && gcc -m32 -o macross *.c, and then slinky with cp y.tab.h slinky && cd slinky && gcc -o slinky *.c.

The dependency of both products on the same y.tab.h is the only sticking point, really, which makes me think it could be well handled with a single simple Makefile, perhaps with a pre-run makedepend.

Be aware that I've made pretty heavy changes to the makefile and the system requirements on my fork at present; modern gcc seems to really dislike pre-ANSI C, and my fork compiles with gcc -m32 -ansi, at least.

from macross.

michaelcmartin avatar michaelcmartin commented on June 17, 2024

Er, to clarify the earlier stuff - there already are two Makefiles in the system, but they're a bit old and dodgy. The michaelcmartin:ansi-c branch only made minor tweaks to the core logic in it and gcc or clang + yacc or bison is all you need for it to build and go. There's a couple of obvious simplifications I'd like to make to them (exploiting patternmatching in Makefiles, basically) and after that it's probably clearer whether that's all that's necessary or if there are further improvements to make.

from macross.

the-real-neil avatar the-real-neil commented on June 17, 2024

Thanks for the prompt reply. Good point---autotools are often overkill.

Incidentally, after glancing at the Makefile on master, it looks like both POSIX and GNU make are supported.

from macross.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.