Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [makefile]

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

1
vote
0answers
65 views

Alt-Coin Wallet QT Project for Mac OS-X

I was told my QT Project file is a hot mess. I'm returning to C++ after many years of doing Java and I'm really new to QT. I would like someone familiar with QT Project files to give my code a once ...
8
votes
3answers
237 views

Calculating effective shop inventories from CSV files

Program purpose The purpose for the program is to create a file containing the effective inventory for each stocked item stored in a collection of shops. Input and algorithm details For clarity, ...
1
vote
2answers
68 views

Portable (Linux, Cygwin,…) Makefile for my own Shell OpenSSL file en-/decryption scripts

Let it be clear that in this question I ask for further guidance with my current version of Makefile used for my own Shell OpenSSL file en-/decryption scripts, not ...
3
votes
0answers
40 views

Makefile for C++ project - dependency generation [closed]

I would like some input on the Makefile I'm using for my C++ project. It is my first Makefile and I learned how to do what I want through various readings on the web. The directory structure is as ...
6
votes
1answer
142 views

Updating my package version using only a Makefile

So I have written a Makefile that has a release function that can be run like: make release bump=patch and I want it to be fully ...
4
votes
0answers
29 views

Make stylesheets, with automatic dependency tracking

This is a revision of the code posted here. It's a Makefile that I want to use for compiling Sass files to CSS in web projects. For this, I typically have two folders ...
3
votes
1answer
36 views

Standalone GNU Makefile tracking `@import` statements in Sass

The following is a (working) excerpt from the Makefile I want to use in web projects. I wanted this Makefile to contain all the necessary code and not rely on other self-written files. Partly, because ...
0
votes
0answers
30 views

Makefile code to generate objects, executables and libraries

The following code is working properly and compiling everything that I want it to compile. It is generating all the objects and targets. I was concerned if this is the most efficient way of using ...
1
vote
1answer
93 views

Makefile for CGI program using SQLite library

I am developing a CGI program in C on Linux using gcc, GNU make and the SQLite library. How does my makefile look? ...
1
vote
0answers
71 views

Rules and targets in a makefile for data science in R

I am analysing some data (from bioinformatics) with R scripts. I created my first makefile to be able to redo them easily. There is a Figures folder in the root folder and for each analysis a folder ...
5
votes
3answers
167 views

Find the greatest common divisor, with unit tests

Introduction I was daunted by the complexity of Makefiles for even seemingly simple projects and I decided to rectify that. I also needed to make myself a few handy command-line tools for convenience ...
2
votes
1answer
687 views

Makefile for a C++ project using Boost, Eigen, and htslib

I had a Makefile but it doesn't meet the "industry-standard expectation". That was feedback from my client. The old Makefile was rejected. Thus, I'm making a new one. Here is the repository for my ...
1
vote
0answers
130 views

Makefile that is a wrapper for a package.json & docker-compose files

I've got the following Makefile.. ...
0
votes
1answer
80 views

Creating a proper workflow through version control and a Makefile

disclaimer: I've posted this around but the question keeps being put on hold for being inherently opinionated which I understand, just looking for some vague direction as to how a more experienced ...
10
votes
2answers
807 views

Mocking socket calls in C++

Explanation I'm trying to get better unit test coverage of my server. I needed to mock out some system libraries (I could not find anything that worked easily for C++). Because I did not want to do ...
4
votes
1answer
122 views

Pandoc builder system

I have created a GNUMake building system for pandoc. It has grown quite a bit, I wonder if I can optimize it further. Would it be possible, for instance, that it only runs a target if the output hasn'...
2
votes
1answer
30 views

Packaging with autotools for Ubuntu

I've developed a C application for Ubuntu and created the installer. The file structure is ...
1
vote
2answers
180 views

Makefile for interpreter in C

My Makefile looks like this ...
3
votes
2answers
250 views

Makefile for a small JNI project

So I'm going to publish this small project on GitHub and I thought I'd better do a makefile for it. The source code consists of 1 Java Class 1 Native JNI module written in C 1 stdlib wrapper object ...
1
vote
1answer
561 views

CMake Solution Setup

I am new to CMake and got currently a setup of my Visual Studio solution working via CMake. My goal now is to have a professional CMake setup. Here is my folder structure: ...
4
votes
3answers
140 views

Completed Makeshift Bash & Makefile To Compile C++ Examples

I am just experimenting with Bash and Makefiles to make my life easier, and here's what I came up with. Scenario: Files are in a directory containing a tutorial, or an iteration. For example, one ...
5
votes
0answers
53 views

Makefile for CodeReview (and other Stack Exchange sites)

This makefile (for GNU Make) has grown slowly as I've been building code samples from this site and others. One thing that's different from most project makefiles is that each binary tends to have ...
6
votes
1answer
1k views

Avoid --compiler-options in makefile using nvcc

I am working with CUDA and I am currently using this makefile to automate my build process. However, there are multiple --compiler-options, basically one for each ...
7
votes
1answer
2k views

Generic Makefile handling unit testing and folder structure

I'm going back to C++ and, even though I'm not a beginner in programming and OOP, I'm quite new in the C++ world and I've not mastered the art of Makefiles. I'd like to know what you think about my ...
6
votes
1answer
107 views

Makefile for building classwork from markdown files and LaTeX

The following makefile builds my classwork for my various college classes and builds pdfs to hold the notes I took during class. I would like feedback on my directory structure and any optimizations ...
4
votes
1answer
1k views

Makefile for building ASM/C project

I am building a bare bones freestanding kernel in ASM and C. My make file is below. ...
4
votes
0answers
454 views

Deploy a Python script as an AWS Lambda micro web service

I'm still new to python, but my history is in the C/C++ world with plenty of Makefiles, though I've rarely written from scratch such elaborate ones as this. The Hitchhiker's Guide to Python gave me ...
2
votes
1answer
91 views

Makefile which only forwards to subdirectories

I have a Makefile, which should when calling make just call make in a list of subdirectories. The subdirectories should not be ...
1
vote
0answers
65 views

My first functional Makefile

I use C# predominantly and just recently moved to C++/Linux, so I'm a bit of a newbie to Makefiles. After a few days of reading the GNU make docs and scouring StackOverflow questions, I was able to ...
2
votes
1answer
129 views

Makefile and object file directory

Ok this is the first makefile I've ever written. I it works and that's about it. Things that I was wondering if if I can specify where the object files go. It looks really bad with all the .o files ...
3
votes
1answer
63 views

Makefile for refactored recursive breadth first search Knight Tour

This is my first hand crafted makefile in quite a while. I thought it might be useful for anyone who wants to review the Knights Tour - Improved Refactored Recursive Breadth First Search. I believe ...
10
votes
1answer
152 views

A Makefile to make some Cheese

Excuse the pun in the title, the project this is for is called "Cheddar" (a type of cheese). Github I have recently been writing a language, in which I was using grunt. Grunt was very slow for me, ...
2
votes
1answer
130 views

Check binary tree symmetry by reversing, checking equality, coverage tested, makefile

A few weeks ago I recall a HackerNews story (found it again: "I Don't Want to Hire You If You Can't Reverse a Binary Tree") about reversing a binary tree (with, as I remember it, the end goal being to ...
6
votes
1answer
64 views

Automake for an S/KEY implementation

I've been tasked with giving a legacy codebase some love. The actual code is written in C, but is not very relevant aside from the #includes each file makes. No, ...
2
votes
1answer
2k views

Translating a makefile to cmake

My makefile looks like this and I translated it to cmake: ...
2
votes
0answers
68 views

Non-recursive make script

I am trying to make an easy-to-use non-recursive make script that works with several directories. Everything is packed here.: Directory structure ...
4
votes
2answers
642 views

Makefile to build and debug a C++ console app

I had to create this makefile to build and debug a C++ console app. I just need some hints and tips on how I can organize my makefile. ...
5
votes
2answers
196 views

Makefile for a x86 operating system in C++

I recently had submitted my bashscript for building an OS for review and got valuable feedback, so I rewrote the entire script for a makefile: Makefile ...
11
votes
1answer
196 views

Makefile for a custom operating system kernel

I'm now posting the second semi-complete part of my operating system makefile. The kernel itself is currently incomplete, so don't be surprised by the small size of the makefile. When the kernel ...
6
votes
2answers
2k views

A basic, modern, idiomatic GNU makefile

I have prepared a small makefile for a small project, but I am trying to find what would be the best practices; up to now I have gathered these: relatively idiomatic (typical structures, flows, var ...
4
votes
1answer
4k views

Makefile for compiling shared libraries

I have a makefile that I've been using to compile my shared libraries which reads in the files from different folders and then builds the objects and binaries in their own folders. The folder ...
6
votes
3answers
124 views

Built-in help in a Makefile

My colleagues often ask me, "Dude could you remind me what I have to type to build this target?". So I eventually implemented a nice workaround in my Makefiles. I wanted my Makefiles to have a help ...
4
votes
4answers
93 views

Math expression on-the-fly interpreter

In the last few day, I wanted to sharpen my C skills a bit, so I wrote a math expression interpreter that can handle + - * / ( ) and only integers. I just want to know how good this code is, if ...
4
votes
1answer
112 views

Simplifying a Makefile

I have a makefile like the one below and I am trying to simplify it. I know I should be assigning variables to cut down on repeated things but I am still confused as to how to properly simplify this ...
2
votes
1answer
53 views

Slicing and dicing images for Google Play

Making an Android app involves making a lot of images of various sizes: The app's launcher icon, in high/low/medium resolution Buttons, menu buttons, if any, in high/low/medium resolution Images for ...
1
vote
1answer
79 views

Makefile to build library

I'm starting with make, and I made my first makefile to build my project. I don't know if it's the best way to do it or not, so I share with you my makefile to get your opinion on it: Directory ...
7
votes
2answers
4k views

Makefile for C++ OpenGL with GLFW and glad

This is a makefile I wrote to compile a simple OpenGL test project which is going to use the libraries GLFW and the C library glad.c. ...
10
votes
4answers
2k views

Converting GTA Vice City ADF audio files to MP3

I wrote a tiny command line tool that converts ADF audio files from the Grand Theft Auto - Vice City game to MP3 files that can be played outside the game. The ADF file format stores the game ...
7
votes
1answer
13k views

Makefile that places object files into an alternate directory (bin/)

I'm trying to learn how to use makefiles, and this is my attempt at making a makefile that compiles source files in a source directory (src/) into object files that are created in a bin directory. <...
3
votes
1answer
1k views

C++ makefile for CPLEX with environment loading

CPLEX is a solver for mathematical problems made by IBM, and it offers callable C libraries. My usual project configuration is a main.cpp file will all the ...