File: build-shlib

package info (click to toggle)
emoslib 000382%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 49,276 kB
  • sloc: fortran: 90,253; ansic: 26,730; makefile: 417; sh: 388; f90: 276
file content (18 lines) | stat: -rw-r--r-- 719 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Makefile to build the shared library.
# Assumes R64 is passed on cmdline
# This should be merged into upstream.

SONAME=libemos$(R64).so.0d
# SHLIBFLAGS= -Wl,-O1 -Wl,--version-script,emos.1.0.0.ver -Wl,-soname,$(SONAME)
SHLIBFLAGS= -Wl,-O1 -Wl,-soname,$(SONAME) 
LIBS= -lgfortran  -lm

ALL_OBJS=bufrdc/*.o crexdc/*.o fft/*.o gribex/*.o interpolation/*.o pbio/*.o grib_api_missing/*.o
DUP_OBJS:=interpolation/fft99.o interpolation/qpassm.o interpolation/set99.o interpolation/rpassm.o
OBJS=$(filter-out $(DUP_OBJS), $(wildcard $(ALL_OBJS)))

# Compile into the shlib all but certain duplicated object files
build: 
	$(CC) -shared  -o debian/$(SONAME) $(SHLIBFLAGS) $(OBJS) -Wl,--as-needed $(LIBS)

.PHONY: clean build