Skip to content

Instantly share code, notes, and snippets.

@barnslig
Created December 8, 2015 13:52
Show Gist options
  • Save barnslig/f4db2dad70bca008c789 to your computer and use it in GitHub Desktop.
Save barnslig/f4db2dad70bca008c789 to your computer and use it in GitHub Desktop.
.PHONY: clean
CC = gcc
LD = $(CC)
CFLAGS=-std=c99 -pedantic -Wall -Wextra
LDFLAGS=-lm
OBJS = grid.o svg.o plotter.o
plotter: $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
clean:
$(RM) $(OBJS) plotter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment