2022-05-12 20:33:09 +00:00
|
|
|
CC = clang
|
2022-05-13 10:30:15 +00:00
|
|
|
CFLAGS = `pkg-config --cflags gtk4 webkit2gtk-5.0 x11 gstreamer-gl-1.0`
|
|
|
|
LIBS = `pkg-config --libs gtk4 webkit2gtk-5.0 x11 gstreamer-gl-1.0`
|
2022-05-12 22:45:02 +00:00
|
|
|
OPTIONS = -Dgtk_doc=false -Dintrospection=false \
|
2022-05-12 20:33:09 +00:00
|
|
|
-DG_DISABLE_CAST_CHECKS \
|
|
|
|
-Dcloudproviders=false \
|
|
|
|
-DGTK_DISABLE_DEPRECATED \
|
|
|
|
-GDK_PIXBUF_DISABLE_DEPRECATED \
|
|
|
|
-G_DISABLE_DEPRECATED -DENABLE_GLES2=ON \
|
|
|
|
-DENABLE_GEOLOCATION=OFF -DENABLE_PLUGIN_PROCESS_GTK2=OFF \
|
|
|
|
-DPORT=GTK \
|
|
|
|
-Dforce_posix_threads=true \
|
|
|
|
-Dman=false \
|
|
|
|
-Dxinerama=false \
|
|
|
|
-Dcolord=false \
|
|
|
|
-Db_coverage=false \
|
|
|
|
-Ddebug=false
|
|
|
|
|
2022-05-09 21:03:14 +00:00
|
|
|
|
|
|
|
all:
|
2022-05-12 22:45:02 +00:00
|
|
|
${CC} -fPIC -O3 -o rose *.c $(CFLAGS) $(LIBS) $(OPTIONS)
|
2022-05-10 15:35:37 +00:00
|
|
|
strip ./rose
|
|
|
|
|
|
|
|
install: all
|
2022-05-13 10:30:15 +00:00
|
|
|
su -c "cp -uf ./rose /usr/local/bin/rose"
|
2022-05-09 21:03:14 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f rose compile_flags.txt
|
|
|
|
|
|
|
|
flags:
|
|
|
|
echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt
|
|
|
|
|
|
|
|
.SILENT: all clean flags
|