https://github.com/quelsolaar/makemake Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} quelsolaar / makemake Public * Notifications * Fork 0 * Star 15 15 stars 0 forks Activity Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights quelsolaar/makemake This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/q] Use Git or checkout with SVN using the web URL. [gh repo clone quelso] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @quelsolaar quelsolaar fixes spelling (Yes i know there are more errors) ... f28d852 Dec 3, 2023 fixes spelling (Yes i know there are more errors) f28d852 Git stats * 5 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time makemake.c uploaded first public version of MakeMake. December 3, 2023 14:14 makemake_test_one.c uploaded first public version of MakeMake. December 3, 2023 14:14 makemake_test_three.c uploaded first public version of MakeMake. December 3, 2023 14:14 makemake_test_two.h uploaded first public version of MakeMake. December 3, 2023 14:14 makemakemake.sh uploaded first public version of MakeMake. December 3, 2023 14:14 readme.md fixes spelling (Yes i know there are more errors) December 3, 2023 16:03 View code MakeMake building MakeMake: Running MakeMake Options: Platforms Test project About the project readme.md MakeMake MakeMake is a tool for generateing and running make files from C code. It does so by parsing the .c and .h files in the same directory as a starting file (usualy the C file containging main), and determains recursivly what files are required to build the project. make make does this by looking for any function declaration using extern, and the searches for the corresponding function definition. building MakeMake: To build makemake on unix platform you can use the shellscript MakeMakeMake, it will not only build makemake, it will also run it, and it therefor takes the same parameters as MakeMake. To build makemake: chmod -x makemakemake.sh ./makemakemake.sh If make a MakeMakeMake is given options it will run makemake and pass on the options to MakeMake. The MakeMakeMake script there for takes the exact same options as MakeMake. Once MakeMakeMake has built MakeMake you can call it directly. Running MakeMake To run MakeMake the comandline format is makemake The C file path will be used to identify the starting C file and the path where it resides. This path is the path that will be searched for other .c and .h files for possible inclution in the build. Options: MakeMake can be given opetions in two ways, either using the comand line, or as pragmas in the .c and .h files. Each option consists of key-value pair, the name of the option and what the option is set to. The available options are: -name Name of the executable. -makefile Name of the make file (or stdout). -compilerflag Custom compiler flags. -platform Platform define. -dynamiclib builds the application as a dynamicly linked library. -lib Library dependency. -define Adds a define. To use the options on the comand line use "-" followed by the option name and option. Example: To build project with a specifird name you may call: ./makemake ./example.c -name my_example To use options from within a .c or .h file, add MakeMake pragma in the following format: #pragma makemake