---
title: "5 Tips for Writing a Makefile for Embedded Software Beningo"
url: https://daily.dev/posts/5-tips-for-writing-a-makefile-for-embedded-software-beningo-rwa4twb16
source_url: https://www.beningo.com/5-tips-for-writing-a-makefile-for-embedded-software
type: article
source: "Beningo Embedded Group"
published: 2026-05-31T07:47:27.189Z
updated: 2026-05-31T08:53:53.686Z
tags: ["general-programming", "c", "embedded", "build-systems"]
reading_time: 7
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 5 Tips for Writing a Makefile for Embedded Software Beningo

**[Beningo Embedded Group](https://daily.dev/sources/beningo)** · 7 min read · 0 upvotes · 0 comments

## Summary

Five practical tips for writing Makefiles in embedded software development: using the shell 'find' command to auto-discover source files, splitting large Makefiles into smaller modular ones, leveraging phony targets for non-build tasks like running unit tests or Docker containers, printing binary size info after each build using arm-none-eabi-size, and considering CMake as a higher-level alternative that generates Makefiles automatically.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.beningo.com/5-tips-for-writing-a-makefile-for-embedded-software>

## Similar posts on daily.dev

- [A Simple Makefile Tutorial](https://daily.dev/posts/a-simple-makefile-tutorial-p5u1o7top) · Lobsters · 0 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#c](https://daily.dev/tags/c), [#embedded](https://daily.dev/tags/embedded), [#build-systems](https://daily.dev/tags/build-systems)

[View this post on daily.dev](https://daily.dev/posts/5-tips-for-writing-a-makefile-for-embedded-software-beningo-rwa4twb16)
