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

learn more… | top users | synonyms

12
votes
3answers
589 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 ...
9
votes
1answer
141 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
39 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
78 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
41 views

How do I simplify the following slice of a Makefile?

Considering the following Makefile: ...
2
votes
3answers
105 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
620 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
380 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 ...
7
votes
0answers
182 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
88 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 ...
0
votes
3answers
63 views

What is the best way to save this? (saving the data generated by an application) [closed]

I have this code, and i want to save the generated data, but i don't know how, A database? a file? do i need to chance everyting in the code and start over again? I'm from brazil, so the variables ...
3
votes
2answers
159 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
490 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
66 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
202 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
110 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
2k 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, ...