Skip to content

Instantly share code, notes, and snippets.

@val314159
Created October 18, 2018 04:25
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 val314159/e3281fb61d6dd5e5db094dc111f373e0 to your computer and use it in GitHub Desktop.
Save val314159/e3281fb61d6dd5e5db094dc111f373e0 to your computer and use it in GitHub Desktop.
Let's get explicit
PROG=hi
all: test
test: $(PROG) ; ./$(PROG)
clean: ; rm -fr *.{o,a,so} *~ $(PROG)
hi: hi.o
$(LD) $(LDFLAGS) $^ -o $@
hi.o: hi.c
$(CC) $(CFLAGS) -c $^ -o $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment