From b8d0f2f09d09d3036fc00cc25c9aa639aa476d03 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Tue, 2 Jul 2024 10:51:11 +0900 Subject: [PATCH] build: add include folder to separate tpl.h Change-Id: I9c96a8b61ea9b16a0f9df1af11d309151c528a7b Signed-off-by: Joonbum Ko --- Makefile.am | 6 ++++-- configure.ac | 1 + include/Makefile.am | 2 ++ {src => include}/tpl.h | 0 src/Makefile.am | 6 ++---- 5 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 include/Makefile.am rename {src => include}/tpl.h (100%) diff --git a/Makefile.am b/Makefile.am index 57ca9b8..afc0ad3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,10 +1,12 @@ if WITH_UTEST -SUBDIRS = src \ +SUBDIRS = include \ + src \ src/wayland-egl-tizen \ tc \ pkgconfig else -SUBDIRS = src \ +SUBDIRS = include \ + src \ src/wayland-egl-tizen \ pkgconfig endif diff --git a/configure.ac b/configure.ac index 47af293..035225a 100644 --- a/configure.ac +++ b/configure.ac @@ -229,6 +229,7 @@ AC_SUBST(INCLUDEDIR) # Set output files AC_CONFIG_FILES([ Makefile + include/Makefile src/Makefile src/wayland-egl-tizen/Makefile pkgconfig/Makefile diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 0000000..7909ff4 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,2 @@ +libtpl_egl_lainclude_HEADERS = tpl.h +libtpl_egl_laincludedir = $(includedir) diff --git a/src/tpl.h b/include/tpl.h similarity index 100% rename from src/tpl.h rename to include/tpl.h diff --git a/src/Makefile.am b/src/Makefile.am index eac127d..4470c57 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,10 +1,8 @@ libtpl_egl_la_LTLIBRARIES = libtpl-egl.la libtpl_egl_ladir = $(libdir) -libtpl_egl_lainclude_HEADERS = tpl.h -libtpl_egl_laincludedir = $(includedir) - -libtpl_egl_la_CFLAGS = -I$(srcdir) \ +libtpl_egl_la_CFLAGS = -I$(top_srcdir)/include \ + -I$(srcdir) \ @TPL_CFLAGS@ if ENABLE_GCOV -- 2.34.1