2022-03-04 17:40:29 +03:00
|
|
|
#
|
|
|
|
# Library Makefile for the Fast Light Tool Kit (FLTK).
|
|
|
|
#
|
2024-03-21 16:27:16 +03:00
|
|
|
# Copyright 2022-2024 by Bill Spitzak and others.
|
2022-03-04 17:40:29 +03:00
|
|
|
#
|
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/COPYING.php
|
|
|
|
#
|
|
|
|
# Please see the following page on how to report bugs and issues:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/bugs.php
|
|
|
|
#
|
|
|
|
|
|
|
|
include ../../makeinclude
|
|
|
|
|
|
|
|
OBJECTS = fl_libdecor.o libdecor-cairo-blur.o fl_libdecor-plugins.o \
|
|
|
|
../../src/xdg-decoration-protocol.o ../../src/xdg-shell-protocol.o \
|
2024-06-01 08:56:48 +03:00
|
|
|
../../src/text-input-protocol.o ../../src/gtk-shell-protocol.o desktop-settings.o os-compatibility.o
|
2022-05-19 18:18:53 +03:00
|
|
|
|
2023-03-29 16:25:29 +03:00
|
|
|
PROTOCOLS = `pkg-config --variable=pkgdatadir wayland-protocols`
|
2022-05-19 18:18:53 +03:00
|
|
|
|
|
|
|
Linux_CFLAGS =
|
|
|
|
FreeBSD_CFLAGS = -I/usr/local/include
|
|
|
|
EXTRA_DECOR = ${${UNAME}_CFLAGS}
|
|
|
|
|
2022-11-03 10:16:03 +03:00
|
|
|
CFLAGS_DECOR = -I. -I../.. -I../../src -I../src -I../src/plugins $(EXTRA_DECOR) -fPIC -D_GNU_SOURCE \
|
2023-12-01 16:43:32 +03:00
|
|
|
-DHAVE_MEMFD_CREATE -DHAVE_MKOSTEMP -DHAVE_POSIX_FALLOCATE
|
2022-05-19 18:18:53 +03:00
|
|
|
|
2022-11-23 15:33:52 +03:00
|
|
|
all : $(OBJECTS)
|
2022-03-04 17:40:29 +03:00
|
|
|
|
|
|
|
depend:
|
|
|
|
: echo "libdecor/build: make depend..."
|
2022-11-23 15:33:52 +03:00
|
|
|
|
2023-11-09 13:25:39 +03:00
|
|
|
fl_libdecor.o : fl_libdecor.c ../src/libdecor.c ../../src/xdg-shell-protocol.c ../../src/xdg-decoration-protocol.c ../../src/text-input-protocol.c ../../src/gtk-shell-protocol.c
|
2023-12-01 16:43:32 +03:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor.c -DLIBDECOR_PLUGIN_API_VERSION=1
|
2022-03-04 17:40:29 +03:00
|
|
|
|
2022-06-06 16:32:54 +03:00
|
|
|
fl_libdecor-plugins.o : fl_libdecor-plugins.c ../src/plugins/cairo/libdecor-cairo.c
|
2023-12-01 16:43:32 +03:00
|
|
|
$(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor-plugins.c -DLIBDECOR_PLUGIN_API_VERSION=1
|
2022-03-04 17:40:29 +03:00
|
|
|
|
2022-11-03 10:16:03 +03:00
|
|
|
libdecor-cairo-blur.o : ../src/plugins/common/libdecor-cairo-blur.c
|
|
|
|
$(CC) $(CFLAGS_DECOR) -c ../src/plugins/common/libdecor-cairo-blur.c
|
2022-03-04 17:40:29 +03:00
|
|
|
|
|
|
|
os-compatibility.o : ../src/os-compatibility.c
|
|
|
|
$(CC) $(CFLAGS_DECOR) -c ../src/os-compatibility.c
|
|
|
|
|
2024-06-01 08:56:48 +03:00
|
|
|
desktop-settings.o : ../src/desktop-settings.c
|
|
|
|
$(CC) $(CFLAGS_DECOR) -c ../src/desktop-settings.c $(LIBDECORDBUS)
|
2022-03-04 17:40:29 +03:00
|
|
|
|
|
|
|
../../src/xdg-shell-protocol.c :
|
|
|
|
wayland-scanner private-code $(PROTOCOLS)/stable/xdg-shell/xdg-shell.xml \
|
|
|
|
../../src/xdg-shell-protocol.c
|
|
|
|
wayland-scanner client-header $(PROTOCOLS)/stable/xdg-shell/xdg-shell.xml \
|
|
|
|
../../src/xdg-shell-client-protocol.h
|
|
|
|
|
|
|
|
../../src/xdg-decoration-protocol.c :
|
|
|
|
wayland-scanner private-code \
|
|
|
|
$(PROTOCOLS)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
|
|
|
|
../../src/xdg-decoration-protocol.c
|
|
|
|
wayland-scanner client-header \
|
|
|
|
$(PROTOCOLS)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
|
|
|
|
../../src/xdg-decoration-client-protocol.h
|
|
|
|
|
|
|
|
../../src/text-input-protocol.c :
|
|
|
|
wayland-scanner private-code \
|
|
|
|
$(PROTOCOLS)/unstable/text-input/text-input-unstable-v3.xml \
|
|
|
|
../../src/text-input-protocol.c
|
|
|
|
wayland-scanner client-header \
|
|
|
|
$(PROTOCOLS)/unstable/text-input/text-input-unstable-v3.xml \
|
|
|
|
../../src/text-input-client-protocol.h
|
2022-11-23 15:33:52 +03:00
|
|
|
|
2023-11-09 13:25:39 +03:00
|
|
|
../../src/gtk-shell-protocol.c :
|
|
|
|
wayland-scanner private-code \
|
|
|
|
gtk-shell.xml ../../src/gtk-shell-protocol.c
|
|
|
|
wayland-scanner client-header \
|
|
|
|
gtk-shell.xml ../../src/gtk-shell-client-protocol.h
|
|
|
|
|
2022-03-04 17:40:29 +03:00
|
|
|
install:
|
|
|
|
echo "Nothing to install"
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
|
|
|
|
clean:
|
2023-11-09 13:25:39 +03:00
|
|
|
$(RM) *.o ../../src/xdg-*.c ../../src/xdg-*.h ../../src/xdg-*.o ../../src/text-input-* ../../src/gtk-shell-*
|