M7350/system/core/libmincrypt/Makefile.am
2024-09-09 08:52:07 +00:00

29 lines
761 B
Makefile

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 := rsa.c sha.c
library_includedir := $(pkgincludedir)
library_include_HEADERS := $(h_sources)
lib_LTLIBRARIES := libmincrypt.la
libmincrypt_la_SOURCES := $(c_sources) $(h_sources)
libmincrypt_la_CFLAGS := $(AM_CFLAGS) -DUSE_GLIB
libmincrypt_la_CPPFLAGS := $(AM_CPPFLAGS) -DUSE_GLIB
libmincrypt_la_LIBADD := -lm -lpthread
libmincrypt_la_LDFLAGS := -all-static
pkgconfigdir := $(libdir)/pkgconfig
pkgconfig_DATA := libmincrypt.pc
EXTRA_DIST := $(pkgconfig_DATA)