Skip to content

LiterallyVoid/c-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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".

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published