-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (36 loc) · 664 Bytes
/
Copy pathmakefile
File metadata and controls
44 lines (36 loc) · 664 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Hydra - Sony Action Cam viewer
TARGET=hydra
DEBUG=no
CC=gcc
CFLAGS =-Wall
CFLAGS+=-Wextra
CFLAGS+=-Wwrite-strings
CFLAGS+=-Wpointer-arith
CFLAGS+=-Wfloat-equal
CFLAGS+=-Wcast-align
ifeq (yes, $(DEBUG))
CFLAGS+=-g
else
CFLAGS+=-O2 -s
endif
#CFLAGS += -DPLATFORM_LINUX $(shell pkg-config --cflags glfw3 glu gl)
LIBS+=-lglfw
LIBS+=-lGL
LIBS+=-lX11
LIBS+=-lXrandr
LIBS+=-lXi
LIBS+=-lm
LIBS+=-lpthread
LIBS+=-ldl
LIBS+=-lcurl
LIBS+=-ljpeg
SOURCES=hydra.c
OBJECTS=$(subst .c,.o, $(SOURCES))
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS)
clean:
rm -f *~
rm -f $(OBJECTS) $(TARGET)
.c.o:
$(CC) $(CFLAGS) $(INCLUDE) -c $<