Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 622 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 622 Bytes

A low-configuration Makefile

Best used with make -s to silence command invocations.

This makefile is intended to be included in a top-level Makefile, like:

OBJECTS = src/main.o src/foo.o src/bar.o

INCLUDES = include/

# Package names passed to `pkg-config`
PACKAGES = openssl

include deps/c-build/build.mk

Features:

  • Header file dependency tracking (it runs the C compiler with -MMD)
  • Generate compile_commands.json (it runs the C compiler with -MJ; if you're not using clang, run EXPORT_COMPILE_COMMANDS=no make instead.)

Caveats:

  • Literal definition of "works on my machine".