1 ###############################################################################
2 # Copyright (c) 2000-2015 Ericsson Telecom AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Eclipse Public License v1.0
5 # which accompanies this distribution, and is available at
6 # http://www.eclipse.org/legal/epl-v10.html
7 ###############################################################################
8 # Makefile for build and install nedit and xemacs additions
13 include ..
/..
/Makefile.cfg
16 DEPFILES
= $(SUBDIR
)/Makefile
$(SUBDIR
)/config.h
$(SUBDIR
)/config.status
17 CONFIGURING
= configuring
18 UPPERCFG
= ..
/..
/Makefile.cfg
21 INSTALL
= install-strip
27 # make sure "configure" doesn't get -Werror
28 CFLAGS
=$(filter-out -Werror
,$(CCFLAGS
) $(CPPFLAGS
)) -Wno-unused-value
35 ifeq ($(PLATFORM
), WIN32
)
36 # Help "configure" find ncurses headers on Cygwin 1.7
37 CPPFLAGS
+=-I
/usr
/include/ncurses
40 # Override make options for ctags' autoconf
41 OPTIONS
=MINGW CPPFLAGS CC CCFLAGS CCDEPFLAG CXXDEPFLAG EXEEXT CFLAGS LDFLAGS
prefix mandir
46 # path and name of 'config.site'
47 #config_site = config.site
49 CONFIGOPTIONS
= $(foreach m
, $(OPTIONS
), $(m
)='$($m)')
52 CONFIG_PARAMS
:= --srcdir=$(SRCDIR
)/mctr2
/editline
/libedit
58 $(MAKE
) -C
$(SUBDIR
) all
61 - cd
$(SUBDIR
) && $(MAKE
) $@ || exit
65 rm -f
$(CONFIGURING
) $(DEPFILES
)
69 $(DEPFILES
): $(UPPERCFG
) $(CONFIGURING
)
71 $(CONFIGURING
): $(UPPERCFG
)
72 @touch
$(SRCDIR
)/mctr2
/editline
/libedit
/*.m4
73 @touch
$(SRCDIR
)/mctr2
/editline
/libedit
/configure
74 @touch
$(SRCDIR
)/mctr2
/editline
/libedit
/config.h.in
76 @echo Running
'configure' script...
77 cd
$(SUBDIR
) && $(CONFIGOPTIONS
) $(SRCDIR
)/mctr2
/editline
/libedit
/configure
$(CONFIG_PARAMS
)
80 .PHONY
: all install tags dep
clean distclean