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

learn more… | top users | synonyms

3
votes
1answer
33 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
27 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
49 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
92 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. ...
7
votes
2answers
138 views
+50

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
72 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
70 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
47 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
36 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
906 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 ...
10
votes
1answer
1k 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
336 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
45 views

How do I simplify the following slice of a Makefile?

Considering the following Makefile: ...
2
votes
3answers
123 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
619 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
389 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
106 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
196 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
72 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
221 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
120 views

Optimizing a Makefile

It's been pointed out (see the first comment) that my makefile rebuilds all source files regardless of changes made. ...
10
votes
3answers
4k 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, ...