-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
27 lines (20 loc) · 856 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
CC = gcc
CFLAGS = -Wall -Wextra -pedantic -lglfw -lGLEW -lGL -lX11 -lpthread -lXrandr -lXi -lm
endif
ifeq ($(UNAME_S),Darwin)
CC = clang
CFLAGS = -Wall -Wextra -pedantic -lGLFW -lGLEW -lm -framework OpenGL
endif
default: deepnet
deepnet: deepnet.c dn_aux.c dn_math.c render.c deepnet.h
$(CC) -o deepnet $(CFLAGS) deepnet.c dn_aux.c dn_math.c render.c deepnet.h
spec: deepnet.c dn_aux.c dn_math.c render.c deepnet.h
$(CC) -o deepnet $(CFLAGS) -DSPEC deepnet.c dn_aux.c dn_math.c render.c deepnet.h
line: deepnet.c dn_aux.c dn_math.c render.c deepnet.h
$(CC) -o deepnet $(CFLAGS) -DLINE deepnet.c dn_aux.c dn_math.c render.c deepnet.h
tri: deepnet.c dn_aux.c dn_math.c render.c deepnet.h
$(CC) -o deepnet $(CFLAGS) -DTRI deepnet.c dn_aux.c dn_math.c render.c deepnet.h
clean:
rm -rf *.gch