M7350/bootable/recovery/updater/Makefile.am

42 lines
1.1 KiB
Makefile
Raw Normal View History

2024-09-09 08:52:07 +00:00
AM_CFLAGS = -Wundef \
-Wstrict-prototypes \
-Wno-trigraphs \
-g -O0 \
-fno-inline \
-fno-short-enums \
-fpic
AM_CPPFLAGS = \
-I. \
-I$(WORKSPACE)/system/core/include
AM_LDFLAGS = -shared -version-info 1:0:0
c_sources = install.c \
updater.c
library_includedir = $(pkgincludedir)
library_include_HEADERS = $(h_sources)
requiredlibs = -lm \
-lpthread \
-lz \
-lcutils \
../minelf/libminelf.la \
../mtdutils/libmtdutils.la \
../edify/libedify.la \
../minzip/libminzip.la \
../duadummy/libduadummy.la \
../applypatch/libapplypatch.la
bin_PROGRAMS = updater
if USE_GLIB
updater_SOURCES = $(c_sources) $(h_sources)
updater_CFLAGS = $(AM_CFLAGS) -DUSE_GLIB @GLIB_CFLAGS@
updater_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_GLIB @GLIB_CFLAGS@
updater_LDADD = $(requiredlibs) @GLIB_LIBS@
else
updater_SOURCES = $(c_sources) $(h_sources)
updater_CFLAGS = $(AM_CFLAGS)
updater_CPPFLAGS = $(AM_CPPFLAGS)
updater_LDADD = $(requiredlibs)
endif