2022-05-14 18:06:17 +00:00
|
|
|
# -*- indent-tabs-mode: t -*-
|
2022-05-16 08:47:04 +00:00
|
|
|
CC ?= clang
|
2022-05-13 12:08:29 +00:00
|
|
|
CFLAGS = `pkg-config --cflags gtk4 webkit2gtk-5.0 x11`
|
|
|
|
LIBS = `pkg-config --libs gtk4 webkit2gtk-5.0 x11`
|
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 \
|
2022-05-14 21:17:56 +00:00
|
|
|
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
|
|
|
-DG_DISABLE_DEPRECATED -DENABLE_GLES2=ON \
|
2022-05-12 20:33:09 +00:00
|
|
|
-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-14 18:06:17 +00:00
|
|
|
PREFIX ?= /usr/local
|
2022-05-09 21:03:14 +00:00
|
|
|
|
2022-05-14 18:14:22 +00:00
|
|
|
all: config.h rose
|
|
|
|
|
|
|
|
rose:
|
2022-05-14 16:08:24 +00:00
|
|
|
$(CC) -fPIC -O3 -o rose *.c $(CFLAGS) $(LIBS) $(OPTIONS)
|
2022-05-10 15:35:37 +00:00
|
|
|
strip ./rose
|
|
|
|
|
2022-05-15 20:59:53 +00:00
|
|
|
debug:
|
2022-05-16 08:47:04 +00:00
|
|
|
$(CC) -fPIC -o rose *.c $(CFLAGS) $(LIBS) $(OPTIONS) -Wall -Wextra \
|
|
|
|
-Wno-unused-variable
|
2022-05-15 20:59:53 +00:00
|
|
|
|
2022-05-14 18:14:22 +00:00
|
|
|
config.h:
|
|
|
|
[ -f "$@" ] || cp config.def.h $@
|
|
|
|
|
2022-05-10 15:35:37 +00:00
|
|
|
install: all
|
2022-05-14 16:08:24 +00:00
|
|
|
cp -f ./rose $(PREFIX)/bin/rose
|
|
|
|
cp -f ./scripts/dmenu_rose.sh $(PREFIX)/bin/dmenu_rose
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(PREFIX)/bin/rose $(PREFIX)/bin/dmenu_rose
|
2022-05-09 21:03:14 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f rose compile_flags.txt
|
|
|
|
|
2022-05-14 18:14:22 +00:00
|
|
|
clean-all: clean
|
|
|
|
rm -f config.h
|
|
|
|
|
2022-05-09 21:03:14 +00:00
|
|
|
flags:
|
|
|
|
echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt
|
|
|
|
|
2022-05-16 08:47:04 +00:00
|
|
|
.PHONY: all rose clean clean-all install uninstall flags config.h
|
|
|
|
.SILENT: all rose clean clean-all install uninstall flags config.h
|