Commit 90d2d88a authored by Matteo Quintiliani's avatar Matteo Quintiliani

Up to date


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@822 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent e8e55a7e
......@@ -2,41 +2,78 @@
# WARNING: this file is a meta-makefile written to adapt the compilation of
# nmxptool when you are compiling it under Earthworm system. This file should
# work for all operating systems using almost all 'make' programs.
# It is based on program 'test' and environment variables:
# $GLOBLAFLAGS, $EW_HOME, $EW_VERSION
# If you want to enable libmseed support for nmxptool you have to have 'gcc'
# and set variable EXTRAPACKAGE to "with-libmseed".
# For Windows-XP and Windows-2000 compile under MinGW.
#
# CFLAGS and LDFLAGS variables will be overrided.
#
# make -f makefile.ux.nognu
# make -f makefile.ux.nognu clean
# make -f makefile.ux.nognu distclean
# make -f makefile.ux.nognu clean_bin
#
# make -f makefile.ux.nognu reconfigure
#
# make -f makefile.ux.nognu install
# make -f makefile.ux.nognu distclean
#
# Author: Matteo Quintiliani - I.N.G.V. - quintiliani@ingv.it
#############################################################################
# If you do not use 'gcc' you can not compile 'libmseed'
EXTRAPACKAGE=--without-libmseed
CFLAGS += $(GLOBALFLAGS) -I$(EW_HOME)/$(EW_VERSION)/src/libsrc/util/libmseed
LDFLAGS += -L$(EW_HOME)/$(EW_VERSION)/src/libsrc/util/libmseed
B = $(EW_HOME)/$(EW_VERSION)/bin
LIBNMXPSRC=libnmxp
PROGS = nmxptool
all:
cd $(LIBNMXPSRC) && ./configure CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" && make \
&& cd .. && ./configure CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" && make && make install-ew-bin
# Clean rules
clean:
test -f $(LIBNMXPSRC)/Makefile && cd $(LIBNMXPSRC) && make clean
test -f Makefile && make clean
all: configurelib makelib configurenmxp makenmxp install
distclean:
test -f $(LIBNMXPSRC)/Makefile && cd $(LIBNMXPSRC) && make distclean
test -f Makefile && make distclean
clean: cleanlib cleannmxp
# Clean nmxptool binary from Earthworm system
clean_bin:
rm -f $B/$(PROGS)
make uninstall-ew-bin
reconfigure: distclean configurelib cleanlib makelib configurenmxp cleannmxp makenmxp install
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
install:
make install-ew-bin
distclean: distcleanlib distcleannmxp
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
configurelib:
( test -f $(LIBNMXPSRC)/Makefile && test -f $(LIBNMXPSRC)/src/Makefile ) \
|| ( cd $(LIBNMXPSRC) && ./configure $(EXTRAPACKAGE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" )
configurenmxp:
( test -f Makefile && test -f src/Makefile ) \
|| ( ./configure $(EXTRAPACKAGE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" )
makelib:
cd $(LIBNMXPSRC) && make
makenmxp:
make
cleanlib:
( test ! -f $(LIBNMXPSRC)/Makefile ) \
|| ( cd $(LIBNMXPSRC) && make clean )
cleannmxp:
( test ! -f Makefile ) \
|| ( make clean )
distcleanlib:
( test ! -f $(LIBNMXPSRC)/Makefile ) \
|| ( cd $(LIBNMXPSRC) && make distclean )
distcleannmxp:
( test ! -f Makefile ) \
|| ( make distclean )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment