mxe/src/libf2c.mk

28 lines
784 B
Makefile
Raw Normal View History

2012-05-03 12:08:56 +01:00
# This file is part of MXE.
# See index.html for further information.
PKG := libf2c
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1
2013-12-29 01:12:23 +00:00
$(PKG)_CHECKSUM := e4a93aeee80c33525ffc87a5f802c30a7e6d1ea4
$(PKG)_SUBDIR :=
2012-05-03 12:08:56 +01:00
$(PKG)_FILE := $(PKG).zip
$(PKG)_URL := http://www.netlib.org/f2c/$($(PKG)_FILE)
2013-07-13 09:26:51 +01:00
$(PKG)_URL_2 := http://netlib.sandia.gov/f2c/$($(PKG)_FILE)
2012-05-03 12:08:56 +01:00
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
echo 1
2012-05-03 12:08:56 +01:00
endef
define $(PKG)_BUILD
$(MAKE) -C '$(1)' -j '$(JOBS)' -f makefile.u \
CC=$(TARGET)-gcc \
AR=$(TARGET)-ar \
LD=$(TARGET)-ld \
RANLIB=$(TARGET)-ranlib \
CFLAGS='-O -DUSE_CLOCK'
2012-05-03 12:08:56 +01:00
$(INSTALL) -m644 '$(1)/libf2c.a' '$(PREFIX)/$(TARGET)/lib'
$(INSTALL) -m644 '$(1)/f2c.h' '$(PREFIX)/$(TARGET)/include'
endef