Skip to main content

Questions tagged [makefile]

A makefile is usually an input file for the build control language/tool make.

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 ...
Jakub Juszczakiewicz's user avatar
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 ...
Vlastimil Burián's user avatar
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, ...
Vlastimil Burián's user avatar
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. ...
qwr's user avatar
  • 1,233
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 ...
elehtine's user avatar
  • 165
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 ...
vdrummer4's user avatar
3 votes
1 answer
341 views

Writing a generic makefile for C projects

Directory Structure: . ├── check.sh ├── GNUmakefile ├── Makefile └── src Makefile has these contents: ...
Madagascar's user avatar
  • 10.1k
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 ...
Madagascar's user avatar
  • 10.1k
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. ...
Kérdezösködő Indián's user avatar
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 ...
Ter Maxima's user avatar
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 ...
Simon's user avatar
  • 209
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 ...
ZarakshR's user avatar
  • 145
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 ...
Mode77's user avatar
  • 663
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 ...
Mode77's user avatar
  • 663
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-...
DannyNiu's user avatar
  • 320

15 30 50 per page
1
2 3 4 5
7