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

learn more… | top users | synonyms

2
votes
1answer
23 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
57 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
51 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
35 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
52 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 ...
6
votes
2answers
280 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
368 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 ...
3
votes
1answer
371 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. ...
2
votes
0answers
138 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 important code and a simple cpxmacro.h file ...
4
votes
1answer
74 views

Generic Makefile

I decided to setup a generic makefile to compile SFML programs, as I'm going to be making a bunch of small apps over the next few weeks playing around with it. I'm still new to writing makefiles ...
2
votes
1answer
44 views

Makefile for automatically processing image files

I have a Makefile that is used to automatically process some image files. The basic idea behind this is copy everything from col-noborder and ...
12
votes
3answers
1k views

C Makefile boilerplate

This is the current Makefile that I use with my C projects. Here is what I would like to be reviewed: Reusability - is this Makefile easy to use for multiple separate projects with minimal ...
11
votes
1answer
2k views

Bubble Sort in C: Array vs Linked List

A few weeks ago I posted a code review of a linked list so I decided to implement bubble sort on my journey of learning C. Here is the referenced linked list library, though this isn't really what's ...
3
votes
2answers
510 views

Optimize a Makefile

Since my project is getting bigger every day and I am just a starter in the wonderful world of makefiles, I need some help improving mine because, although it works (almost) as I wish, it really ...
4
votes
1answer
51 views

How do I simplify the following slice of a Makefile?

Considering the following Makefile: ...
2
votes
3answers
126 views

How can I improve this Makefile?

I am working on creating a Makefile for my ProjectEuler solutions. I need to compile each solution into a separate binary for personal timing purposes. Is it possible to pass the name of the rule to ...
1
vote
1answer
2k views

Write and read non-serializable object to file android example

I couldn't find a good example, so after some fighting with writing non-serializable object to file in Android, I decided to show you my solution. Could you tell me if it is OK or how could it be ...
4
votes
1answer
716 views

Monitor filesystem for continuous integration and build

I've written a simple Python module that depends on watchdog to monitor for modified files, then runs various integration and build processes. I'm fairly new to Python, so I'd appreciate all ...
15
votes
1answer
476 views

Portable CMake script

I'm trying to write a portable CMake script for a simple Qt application. The target platforms are Win and Mac OSX. But as you can see, it's quite a monster already. Are there any CMake profs? Can you ...
3
votes
3answers
111 views

Makefile — Platform Dependency

My application has two parts -- a client and a server. Within this, there are different versions for different platforms. The user specifies this in the args, i.e. "make PLATFORM=x11". However, I ...
3
votes
2answers
204 views

A clean and efficient makefile for a simple c program

I have an instructor who is very stringent on makefiles only containing rules and dependencies that need to be included. The structure for the program is very basic. The requirement is to produce ...
7
votes
2answers
2k views

Improving Makefile and general C++ project structure

I am a single developer on a numerics project. As it is growing, I would like to improve the Makefile the general organisation of the project structuring of the files workflow As it stands now I ...
3
votes
2answers
76 views

Makefile tracking YYYY-MM directories

I have a directory full of YYYY-MM directories with statistics. I want to use a Makefile to only build summaries YYYY-MM.txt of the statistics if the contents of directory is newer than the summary. ...
2
votes
1answer
237 views

Tips for Python build scripts?

File manipulation code, I've noticed, has two salient properties: It's everywhere, and vitally important to functional software It has lots of exceptions. Please give me some pointers on ...
2
votes
1answer
122 views

Optimizing a Makefile

It's been pointed out (see the first comment) that my makefile rebuilds all source files regardless of changes made. ...
11
votes
3answers
5k views

makefile dependency generation

I need automatic dependency generation to be done in my makefile. So, I have tried to write one, after googling for similar ones. I have found some ways to do that, ...