Skip to content

Instantly share code, notes, and snippets.

@comex
Last active April 1, 2022 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save comex/a4c8fa3593be54df248ac18bfc447b64 to your computer and use it in GitHub Desktop.
Save comex/a4c8fa3593be54df248ac18bfc447b64 to your computer and use it in GitHub Desktop.
#include "foo.h"
export CCACHE_BASEDIR=$(CURDIR)
$(CURDIR)/foo.o: $(CURDIR)/foo.c Makefile
ccache cc -c -o $@ $< -MD
clean:
rm -f $(CURDIR)/foo.o $(CURDIR)/foo.d
-include $(CURDIR)/foo.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment