comparison dep/animia/Makefile.am @ 236:4d461ef7d424

HUGE UPDATE: convert build system to autotools why? because cmake sucks :)
author Paper <mrpapersonic@gmail.com>
date Fri, 19 Jan 2024 00:24:02 -0500
parents
children a7d0d543b334
comparison
equal deleted inserted replaced
235:593108b3d555 236:4d461ef7d424
1 lib_LTLIBRARIES = libanimia.la
2 include_HEADERS = include/animia.h
3
4 if BUILD_WIN
5 files_win = src/fd/win32.cc src/win/win32.cc src/util/win32.cc
6 endif
7
8 if BUILD_OSX
9 files_osx = src/fd/xnu.cc src/win/quartz.cc src/util/osx.cc
10 cflags_osx =
11 libs_osx = Foundation CoreGraphics AppKit objc
12 endif
13
14 if BUILD_LINUX
15 files_linux = src/fd/proc.cc
16 endif
17
18 if BUILD_LIBUTIL
19 files_libutil = src/fd/libutil.cc
20 libs_libutil = -lutil
21 endif
22
23 if BUILD_LIBKVM
24 files_libkvm = src/fd/kvm.cc
25 libs_libkvm = -lkvm
26 endif
27
28 if BUILD_XCB
29 files_x11 = src/win/x11.cc
30 cflags_x11 = @XCB_CFLAGS@
31 libs_x11 = @XCB_LIBS@
32 endif
33
34 if BUILD_WAYLAND
35 files_wayland = \
36 src/win/wayland.cc \
37 src/win/wayland/ext-foreign-toplevel-list-v1.c \
38 src/win/wayland/wlr-foreign-toplevel-management-unstable-v1.c
39 cflags_wayland = @WAYLAND_CFLAGS@
40 libs_wayland = @WAYLAND_LIBS@
41 endif
42
43 libanimia_la_SOURCES = \
44 src/animia.cc \
45 src/fd.cc \
46 src/player.cc \
47 src/strategist.cc \
48 src/util.cc \
49 src/win.cc \
50 $(files_win) \
51 $(files_osx) \
52 $(files_linux) \
53 $(files_libutil) \
54 $(files_libkvm) \
55 $(files_x11) \
56 $(files_wayland)
57
58 libanimia_la_CPPFLAGS = -I$(top_srcdir)/include @DEFS@
59
60 libanimia_la_LDFLAGS = -version-info 0:0:0
61
62 libanimia_la_CXXFLAGS = $(cflags_osx) $(cflags_x11) $(cflags_wayland)
63
64 libanimia_la_LIBADD = $(libs_wayland) $(libs_x11) $(libs_osx) $(libs_libutil) $(libs_libkvm)
65
66 ACLOCAL_AMFLAGS = -I m4