Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7769554
commit 7ab390f
Showing
8 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
CC = g++ | ||
LDFLAGS=-framework GLUT -framework OpenGL -lGLEW | ||
all: main | ||
LDFLAGS = -framework GLUT -framework OpenGL -lGLEW | ||
CFLAGS = -O | ||
SRC = src/main.cc src/program.cc src/shader.cc | ||
OBJ = ${SRC:.c=.o} | ||
|
||
main: main.o shader.o program.o | ||
${CC} ${LDFLAGS} main.o shader.o program.o -o main | ||
all: main | ||
|
||
main.o: main.cc | ||
${CC} -c main.cc | ||
.c.o: | ||
${CC} -c ${CFLAGS} -o $@ $< | ||
|
||
shader.o: shader.cc | ||
${CC} -c shader.cc | ||
main: ${OBJ} | ||
${CC} ${LDFLAGS} ${OBJ} -o main | ||
|
||
program.o: program.cc | ||
${CC} -c program.cc | ||
|
||
clean: | ||
rm -rf *o main | ||
rm -rf src/*.o main |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.