-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
39 lines (25 loc) · 1.16 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
#LIBYTPMV=modparser.C audiorenderer.C samplecache.C mmutil.C framerenderer.C videorenderer.C simple.C -lGL -lGLEW -lEGL -lX11 -lgbm -lSoundTouch -lpthread -lasound `pkg-config --cflags --libs gstreamer-1.0 gio-2.0`
LIBYTPMV=common.o glutil.o texturecache.o modparser.o audiorenderer.o samplecache.o mmutil.o framerenderer2.o videorenderer.o simple.o
LIBS= -lglfw -lGL -lGLEW -lEGL -lX11 -lgbm -lSoundTouch -lpthread -lasound `pkg-config --libs gstreamer-1.0 gio-2.0`
CFLAGS ?= -O2
CXX ?= g++
CC_FLAGS = $(CFLAGS) -Iinclude -Wall --std=c++0x `pkg-config --cflags gstreamer-1.0 gio-2.0` -fno-omit-frame-pointer
LD_FLAGS = $(LIBS) $(LDFLAGS)
libytpmv.a: $(LIBYTPMV)
ar rcs libytpmv.a $(LIBYTPMV)
clean:
rm -f *.a *.o test1 test2 test3 test4 test5 test6
%.o: %.C
$(CXX) -c $(CC_FLAGS) $< -o $@
test1: test1.C libytpmv.a
$(CXX) -o $@ $^ $(CC_FLAGS) $(LIBS)
test2: test2.C libytpmv.a
$(CXX) -o $@ $^ $(CC_FLAGS) $(LIBS)
test3: test3.C libytpmv.a
$(CXX) -o $@ $^ $(CC_FLAGS) $(LIBS)
test4: test4.C libytpmv.a
$(CXX) -o $@ $^ $(CC_FLAGS) $(LIBS)
test5: test5.C libytpmv.a
$(CXX) -o $@ $^ $(CC_FLAGS) $(LIBS)
test6: test6.C libytpmv.a
$(CXX) -o $@ $^ $(CC_FLAGS) $(LIBS)