summaryrefslogtreecommitdiffstats
path: root/src/cfitsio.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/cfitsio.mk')
-rw-r--r--src/cfitsio.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/cfitsio.mk b/src/cfitsio.mk
index 9993f3b..28bb6ad 100644
--- a/src/cfitsio.mk
+++ b/src/cfitsio.mk
@@ -15,7 +15,13 @@ endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
- --prefix='$(PREFIX)/$(TARGET)'
- $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
- $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+ --prefix='$(PREFIX)/$(TARGET)' \
+ FC='$(TARGET)-gfortran'
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+
+ '$(TARGET)-gcc' \
+ -W -Wall -Werror -ansi \
+ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-cfitsio.exe' \
+ `'$(TARGET)-pkg-config' cfitsio --cflags --libs`
endef