forked from multigcs/multigcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.gl-sdl
executable file
·58 lines (43 loc) · 2.52 KB
/
Makefile.gl-sdl
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
45
46
47
48
49
50
51
52
53
54
55
56
57
## Linux-Desktop GL Version ##
DEB_DEPENDS = tcl8.5,espeak,coreutils,bluez,imagemagick,ia32-libs,lib32asound2,lib32gcc1,lib32stdc++6,lib32tinfo5,lib32z1,libasound2,libasyncns0,libattr1,libc6,libc6-i386,libcaca0,libcap2,libcomerr2,libdbus-1-3,libdirectfb-1.2-9,libflac8,libfreetype6,libgcc1,libgcrypt11,libgl1-mesa-glx,libgl1-nvidia-glx,libglu1-mesa,libgnutls26,libgpg-error0,libgssapi-krb5-2,libice6,libidn11,libjbig0,libjpeg8,libjson0,libk5crypto3,libkeyutils1,libkrb5-3,libkrb5support0,libldap-2.4-2,libncursesw5,libogg0,libp11-kit0,libpng12-0,libpulse0,librtmp0,libsasl2-2,libsdl1.2debian,libsdl-image1.2,libsdl-ttf2.0-0,libslang2,libsm6,libsndfile1,libssh2-1,libssl1.0.0,libstdc++6,libtasn1-3,libtiff4,libtinfo5,libts-0.0-0,libuuid1,libvorbis0a,libvorbisenc2,libwebp2,libwrap0,libx11-6,libx11-xcb1,libxau6,libxcb1,libxdmcp6,libxext6,libxi6,libxtst6,zlib1g
VERSION_NAME = glsdl
EXTRA_OBJECTS = draw/gl_draw.c
BASE_DIR = /usr/share/multigcs
COMP = clang
BUILDDIR := build/$(VERSION_NAME)
INCDIR =
LIBS =
CFLAGS += -DSDLGL -O3 -Wall -DBASE_DIR="\"$(BASE_DIR)\""
CFLAGS += -ggdb
#CFLAGS += -pg
## wifibroadcast ##
#CFLAGS += -DUSE_WIFIBC
#INCDIR += -I./wifibc
#LIBS += -lrt -lpcap -lavformat -lavcodec -lswscale -lz -lavutil
#EXTRA_OBJECTS += wifibc/wifibc.c wifibc/lib.c wifibc/radiotap.c wifibc/fec.c
## video for linux api for cam ##
#CFLAGS += -DUSE_V4L
# opencv api for cam and video-files ##
CFLAGS += -DUSE_OPENCV
CFLAGS += -DOPENCV_EFFECTS -DUSE_QUIRC
INCDIR += $(shell pkg-config --cflags opencv)
LIBS += $(shell pkg-config --libs opencv)
## vlc api for cam ##
#CFLAGS += -DUSE_VLC
#INCDIR += $(shell pkg-config --cflags libvlc)
#LIBS += $(shell pkg-config --libs libvlc)
#EXTRA_OBJECTS += draw/vlcinput.c
CFLAGS += -DUSE_APRS
EXTRA_OBJECTS += aprs.c
INCDIR += $(shell pkg-config --cflags sdl) $(shell pkg-config --cflags SDL_image) $(shell pkg-config --cflags SDL_net) $(shell pkg-config --cflags gl) $(shell pkg-config --cflags glu) \
-I/usr/local/include -Iquirc
LIBS += $(shell pkg-config --libs sdl) $(shell pkg-config --libs SDL_image) $(shell pkg-config --libs SDL_net) $(shell pkg-config --libs gl) $(shell pkg-config --libs glu) $(shell pkg-config --libs glew)
LIBS += -ludev
## ldd gcs | grep -v /opt | awk '{print $1}' | xargs -r -l dpkg -S | cut -d":" -f1 | sort -u | tr "\n" "," ##
COMMONSRC = draw/opencv.c quirc/decode.c quirc/identify.c quirc/quirc.c quirc/version_db.c quirc/qrcheck.c
COMMONHRD =
# dpf-display support
#COMMONSRC += dpf/display_dpf.c dpf/dpflib.c dpf/rawusb.c
#LIBS += -lusb
#CFLAGS += -DDPF_DISPLAY
include make.inc