Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 79023b9783
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (16 sloc) 0.403 kB
# Automated Makefile
CC = g++
LINKER = ld
CFLAGS = -Wall -g
LIBS = -lGL -lGLU -lglut -lm
COMPILE = $(CC) $(CFLAGS) -c
OBJFILES := $(patsubst %.c,%.o,$(wildcard *.c))
all: scenegraph
scenegraph: $(OBJFILES)
$(CC) -o SceneGraph main.cc $(OBJFILES) $(LIBS)
lib: $(OBJFILES)
$(LINKER) -G $(OBJFILES) -o libscenegraph.so
%.o: %.c
$(COMPILE) -o $@ $<
clean:
rm $(OBJFILES) SceneGraph
Jump to Line
Something went wrong with that request. Please try again.