Sync with 5.4.0
[deliverable/titan.core.git] / mctr2 / editline / Makefile
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
9 #
10 #
11
12 TOP := ../..
13 include ../../Makefile.cfg
14
15 SUBDIR = build
16 DEPFILES = $(SUBDIR)/Makefile $(SUBDIR)/config.h $(SUBDIR)/config.status
17 CONFIGURING = configuring
18 UPPERCFG = ../../Makefile.cfg
19
20 ifeq ($(DEBUG), no)
21 INSTALL = install-strip
22 else
23 INSTALL = install
24 endif
25
26 # Variable wrappers
27 # make sure "configure" doesn't get -Werror
28 CFLAGS=$(filter-out -Werror,$(CCFLAGS) $(CPPFLAGS)) -Wno-unused-value
29 EXEEXT=$(EXESUFFIX)
30 prefix=$(TTCN3_DIR)
31 mandir=$(MANDIR)
32 # For MinGW only
33 bindir=$(BINDIR)
34
35 ifeq ($(PLATFORM), WIN32)
36 # Help "configure" find ncurses headers on Cygwin 1.7
37 CPPFLAGS+=-I/usr/include/ncurses
38 endif
39
40 # Override make options for ctags' autoconf
41 OPTIONS =MINGW CPPFLAGS CC CCFLAGS CCDEPFLAG CXXDEPFLAG EXEEXT CFLAGS LDFLAGS prefix mandir
42 ifdef MINGW
43 OPTIONS+=bindir
44 endif
45
46 # path and name of 'config.site'
47 #config_site = config.site
48
49 CONFIGOPTIONS = $(foreach m, $(OPTIONS), $(m)='$($m)')
50
51 ifdef SRCDIR
52 CONFIG_PARAMS := --srcdir=$(SRCDIR)/mctr2/editline/libedit
53 else
54 SRCDIR := $(ABS_TOP)
55 endif
56
57 all run: $(DEPFILES)
58 $(MAKE) -C $(SUBDIR) all
59
60 clean:
61 - cd $(SUBDIR) && $(MAKE) $@ || exit
62
63 distclean:
64 rm -rf $(SUBDIR)
65 rm -f $(CONFIGURING) $(DEPFILES)
66
67 dep: $(DEPFILES)
68
69 $(DEPFILES): $(UPPERCFG) $(CONFIGURING)
70
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
75 mkdir -p $(SUBDIR)
76 @echo Running 'configure' script...
77 cd $(SUBDIR) && $(CONFIGOPTIONS) $(SRCDIR)/mctr2/editline/libedit/configure $(CONFIG_PARAMS)
78 @touch $(CONFIGURING)
79
80 .PHONY: all install tags dep clean distclean
This page took 0.036238 seconds and 5 git commands to generate.