Questions tagged [makefile]
A makefile is usually an input file for the build control language/tool make.
98 questions
3
votes
0
answers
61
views
library variant during application startup
I wrote some PoC for load library with best optimization version during application startup. The goal for it check in the _init function code checking by cpuid ...
4
votes
1
answer
562
views
Makefile for a tiny C++ project, follow-up 1
This is a completely refactored code of Makefile for a tiny C++ project based on all of the information in answers there, also comments, and a bit of my common sense.
I did my best, I worked really ...
6
votes
5
answers
2k
views
Makefile for a tiny C++ project
I must have re-written it from scratch: Makefile for a tiny C++ project, follow-up 1 Thanks for any further advice in advance!
This is an additional question to C++ code reading from a text file, ...
3
votes
1
answer
94
views
Assemble and link assembly makefile
This is a GNU Makefile I made for a collection of assembly listings. It uses static pattern rules to group together similar rules.
...
9
votes
4
answers
2k
views
A simple reusable class for rational numbers
I created a class for fractions (rational numbers). It contains basic operators for arithmetics, comparisons, and input and output.
I often write classes for fractions, 2D or 3D points, and log ...
3
votes
1
answer
165
views
Makefile for C project
This is a makefile for a project I'm currently working on. I was wondering, if there was a way to write it more concisely, especially concerning tests and libraries. I would like to maintain the ...
3
votes
1
answer
341
views
Writing a generic makefile for C projects
Directory Structure:
.
├── check.sh
├── GNUmakefile
├── Makefile
└── src
Makefile has these contents:
...
3
votes
2
answers
407
views
Makefile to build and test a C program
Requirements:
make shalt build read_file program in the root directory of the project from all the files in the ...
2
votes
2
answers
100
views
Modernization of a Makefile for an application with shared libraries
I have a Makefile that I've been using to compile my shared libraries and an executable for an APR based application.
...
1
vote
2
answers
163
views
Rate my Makefile
Here's the Makefile I've built up over the last two years which I use as a template (most often verbatim apart from target name(s)). It's meant to be used for C ...
0
votes
1
answer
162
views
MakeFile for C++ small project
I decided to implement a Makefile for a personal project I'm working on (I've never created Makefile before) but I need to learn for an upcoming work assignment. The Makefile it's supposed to build ...
1
vote
2
answers
210
views
Makefile template
I have created a Makefile template file which I hope to be able to easily drop in to a folder and have useful targets ready. I am, however, not very familiar with ...
3
votes
2
answers
397
views
(Rev. 2) Command-line Tower of Hanoi game
This is a follow-up from Command-line Tower of Hanoi game -- many thanks to those whose reviwed it.
By request, the project is also available on GitHub. Forks and bug reports are welcomed.
Compiled ...
5
votes
2
answers
1k
views
Command-line Tower of Hanoi game
This code has been revised. See (Rev. 2) Command-line Tower of Hanoi game
Compiled with g++ 9.4.0. makefile included. Any ...
1
vote
1
answer
181
views
Makefile: Include a generated-on-demand file
For the record, I'm writing according to the NEXT - Version 5 of Single Unix Specification, which is Issue 8 if you count the days when it was named XPG. In this new standard, a few new already-common-...