Skip to content

Instantly share code, notes, and snippets.

@shlevy
Created April 14, 2013 14:18
Show Gist options
  • Select an option

  • Save shlevy/5382898 to your computer and use it in GitHub Desktop.

Select an option

Save shlevy/5382898 to your computer and use it in GitHub Desktop.
.POSIX:
TARGETS = a b
.PHONY: all
all: $(TARGETS)
$(TARGETS): lib.a
CFLAGS = -I .
.o:
$(CC) '$<' -o '$@' $(LDFLAGS) lib.a
.POSIX:
TARGETS = a b
.PHONY: all
all: $(TARGETS)
$(TARGETS): lib(lib.o)
CFLAGS = -I .
.o:
$(CC) '$<' -o '$@' $(LDFLAGS) lib.a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment