aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 43348e3277338e65a130efa345d2c943346fa480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CC=gcc
LDFLAGS=-lGL -lglut -lGLU -lm
CFLAGS=
SRC=gragl.c
OBJ=${SRC:.c=.o}

default_target: all

.c.o:
	${CC} ${CFLAGS} -c $<

example: example.c
	${CC} -o $@ ${LDFLAGS} example.c ${OBJ}

all: ${OBJ} example

clean:
	-rm *.o example

run: all
	./example