fix missing -lnetcdff when netcdf built as shared libraries #8
[WPS-merge.git] / external / Makefile
blobd9ac7be2bba028c57909d990f52823338b06295e
1 override MAKEOPTS:=
3 all: $(INTERNAL_GRIB2_PATH)/lib/libz.a $(INTERNAL_GRIB2_PATH)/lib/libpng.a $(INTERNAL_GRIB2_PATH)/lib/libjasper.a
5 $(INTERNAL_GRIB2_PATH)/lib/libz.a:
6 (cd zlib-1.2.11; ./configure --prefix=$(INTERNAL_GRIB2_PATH) --static && make && make install)
8 $(INTERNAL_GRIB2_PATH)/lib/libpng.a: $(INTERNAL_GRIB2_PATH)/lib/libz.a
9 (cd libpng-1.6.37; ./configure --prefix=$(INTERNAL_GRIB2_PATH) --disable-shared --with-zlib-prefix=$(INTERNAL_GRIB2_PATH) && make && make install)
11 $(INTERNAL_GRIB2_PATH)/lib/libjasper.a:
12 (cd jasper-1.900.29; ./configure --prefix=$(INTERNAL_GRIB2_PATH) --disable-shared && make && make install)
14 clean:
15 (cd zlib-1.2.11; $(MAKE) distclean)
16 (cd libpng-1.6.37; $(MAKE) clean)
17 (cd jasper-1.900.29; $(MAKE) distclean)
18 (rm -rf $(INTERNAL_GRIB2_PATH))