@@ -36,6 +36,7 @@ exec_prefix:=@exec_prefix@
36
36
INCLUDEDIR: =@includedir@
37
37
LIBDIR: =@libdir@
38
38
BINDIR: =@bindir@
39
+ PKGCONFIGDIR: =$(LIBDIR ) /pkgconfig
39
40
40
41
HOST_OS: =@host_os@
41
42
@@ -94,8 +95,8 @@ EXE_LDFLAGS:=$(LDFLAGS) $(foreach path, $(ABS_FLINT_DIR) $(GMP_LIB_PATH) $(MPFR_
94
95
# ###############################################################################
95
96
96
97
CFG_FILES := \
97
- $(FLINT_DIR ) /config.log $(FLINT_DIR ) /flint-config.h \
98
- $(SRC_DIR ) /fft_tuning.h \
98
+ $(FLINT_DIR ) /config.log $(SRC_DIR ) /flint-config.h \
99
+ $(SRC_DIR ) /fft_tuning.h $( FLINT_DIR ) /flint.pc \
99
100
$(FLINT_DIR ) /Makefile $(SRC_DIR ) /fmpz/fmpz.c
100
101
101
102
# ###############################################################################
@@ -195,7 +196,7 @@ endif
195
196
196
197
INSTALL_DIRS := \
197
198
$(LIBDIR ) $(INCLUDEDIR ) /flint \
198
- $(INCLUDEDIR ) /flint/flintxx
199
+ $(INCLUDEDIR ) /flint/flintxx $( PKGCONFIGDIR )
199
200
ifneq ($(findstring $(HOST_OS ) ,mingw32 mingw64 cygwin msys) ,)
200
201
INSTALL_DIRS += $(BINDIR )
201
202
endif
@@ -724,6 +725,7 @@ distclean: clean
724
725
# ###############################################################################
725
726
726
727
install : library | $(INSTALL_DIRS )
728
+ $(CP ) flint.pc $(PKGCONFIGDIR ) /flint.pc
727
729
ifneq ($(SHARED ) , 0)
728
730
ifeq ($(findstring $(HOST_OS ) ,mingw32 mingw64 cygwin msys) ,)
729
731
$(CP_A) $(FLINT_DIR)/$(FLINT_LIBNAME)* $(LIBDIR)
@@ -746,6 +748,7 @@ endif
746
748
endif
747
749
748
750
uninstall :
751
+ $(RM_F ) $(PKGCONFIGDIR ) /flint.pc
749
752
$(RM_RF ) $(INCLUDEDIR ) /flint
750
753
$(RM_F ) $(LIBDIR ) /$(FLINT_LIB_STATIC )
751
754
ifeq ($(findstring $(HOST_OS ) ,mingw32 mingw64 cygwin msys) ,)
0 commit comments