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

learn more… | top users | synonyms

0
votes
0answers
43 views

Modular Non-Recursive Make File

So I wanted to write a Makefile that would allow for module specific rules or just make some standard rules for a module. I started writing this with, if I'm honest, no idea about makefiles. The idea ...
4
votes
1answer
25 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
29 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
771 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
667 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 ...
0
votes
1answer
54 views

Is my makefile correct? [closed]

I am new to using makefile. I have got three files in a folder- cat.c, hello.c and bash. I am not sure if this is the right way to do it. ...
3
votes
2answers
127 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
44 views

How do I simplify the following slice of a Makefile?

Considering the following Makefile: ...
2
votes
3answers
116 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
1k 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
481 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 ...
10
votes
0answers
263 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
97 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
179 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
923 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 ...
2
votes
2answers
69 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
212 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
117 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
3k 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, ...