aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Ecore_Drm.am
blob: 42b280cf317955263ec6416c504adb2da756912c (plain) (blame)
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
if HAVE_ECORE_DRM

### Library

lib_LTLIBRARIES += lib/ecore_drm/libecore_drm.la

installed_ecoredrmmainheadersdir = $(includedir)/ecore-drm-@VMAJ@
dist_installed_ecoredrmmainheaders_DATA = \
  lib/ecore_drm/Ecore_Drm.h

lib_ecore_drm_libecore_drm_la_SOURCES = \
lib/ecore_drm/ecore_drm_sprites.c \
lib/ecore_drm/ecore_drm_fb.c \
lib/ecore_drm/ecore_drm_evdev.c \
lib/ecore_drm/ecore_drm_inputs.c \
lib/ecore_drm/ecore_drm_output.c \
lib/ecore_drm/ecore_drm_tty.c \
lib/ecore_drm/ecore_drm_device.c \
lib/ecore_drm/ecore_drm.c \
lib/ecore_drm/ecore_drm_private.h

lib_ecore_drm_libecore_drm_la_CPPFLAGS = \
  -I$(top_builddir)/src/lib/efl \
  @ECORE_DRM_CFLAGS@ \
  -DPACKAGE_LIB_DIR=\"$(libdir)\" \
  -DMODULE_ARCH=\"$(MODULE_ARCH)\"

lib_ecore_drm_libecore_drm_la_LIBADD = @ECORE_DRM_LIBS@
lib_ecore_drm_libecore_drm_la_DEPENDENCIES = @ECORE_DRM_INTERNAL_LIBS@
lib_ecore_drm_libecore_drm_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@

### Drm Launch Binary

ecoredrmlaunchinternal_bindir = $(libdir)/ecore_drm/bin/$(MODULE_ARCH)
ecoredrmlaunchinternal_bin_PROGRAMS = bin/ecore_drm/ecore_drm_launch

bin_ecore_drm_ecore_drm_launch_SOURCES = \
  bin/ecore_drm/ecore_drm_launch.c

bin_ecore_drm_ecore_drm_launch_CPPFLAGS = \
  -I$(top_builddir)/src/lib/efl \
  @ECORE_DRM_CFLAGS@ @SUID_CFLAGS@ \
  -DPACKAGE_LIB_DIR=\"$(libdir)\" \
  -DMODULE_ARCH=\"$(MODULE_ARCH)\"

bin_ecore_drm_ecore_drm_launch_LDADD = \
  @ECORE_DRM_LIBS@ \
  @SUID_LDFLAGS@

bin_ecore_drm_ecore_drm_launch_DEPENDENCIES = \
  @USE_ECORE_DRM_INTERNAL_LIBS@

setuid_root_mode = a=rx,u+xs
EFL_INSTALL_EXEC_HOOK += @chmod $(setuid_root_mode) $(DESTDIR)$(libdir)/ecore_drm/bin/$(MODULE_ARCH)/ecore_drm_launch$(EXEEXT) || true;

endif