Skip to content

Instantly share code, notes, and snippets.

@kgabis
Created April 13, 2013 17:24
Show Gist options
  • Select an option

  • Save kgabis/5379288 to your computer and use it in GitHub Desktop.

Select an option

Save kgabis/5379288 to your computer and use it in GitHub Desktop.
CC = gcc
CFLAGS = -O3 -Wall -std=gnu99
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
CFLAGS += -lm
endif
with_libpng:
$(CC) *.c -o raytracer $(CFLAGS) -lPNG -DPNG
with_csfml::
$(CC) *.c -o raytracer $(CFLAGS) -lcsfml-graphics -lcsfml-window -lcsfml-system
clean:
rm -f *.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment