source: rtems/tools/build/src/Makefile.in @ f95d2b53

4.104.114.84.95
Last change on this file since f95d2b53 was f95d2b53, checked in by Joel Sherrill <joel.sherrill@…>, on 07/17/98 at 15:49:12

Patch from Ralf Corsepius <corsepiu@…>. Comments:

  • Added support for bsd "install" ($(BSDINSTALL)) to host.cfg.in, i.e. the standard "install" program that most packages (including automake) use. In Makefiles outside of rtems, "install" normally is referenced by $(INSTALL), but rtems already uses $(INSTALL) for install-if-change, hence I used $(BSDINSTALL) instead to keep up backward compatibility.
  • Removed references to @GREP@ etc. from host.cfg.in, as configure.in doesn't check for them (Minor cleanup).
  • Added installation flags INST*FLAGS to host.cfg.in, which should replace -m XXXX flags for installation calls.

*Changes to gcc.cfg to enable it to build host programs from multiple
sources files.
Should not disturb existing sources, but neccessary.

  • There was a not-so-minor bug in the configuration files: "make install" and "make debug_install" don't work in all subdirectories!! I tried to fix this by adding "install" to MTARGETS in main.cfg, which seems to solve most of the problems. But there still seem to be rare (?) cases where "make debug_install" still seems to have problems.
  • Changes to many host related tool-Makefiles to demonstrate the abilities of INST*FLAGS, BSDINSTALL and the new rules in gcc.cfg. ..of cause ... but BSDINSTALL is THE standard method to install files in most program packages besides rtems. This part of the patch fixes some minor protection setting problems, but doesn't support TARGET_VARIANTS

NOTE:
I hope you will like the BSDINSTALL, INST*FLAGS stuff. It is a step to
get rid of "install-if-change" and to rely on a more standard
installation procedure. If you don't like BSDINSTALL, removing it from
the patch isn't difficult- just grep for BSDINSTALL and replace
BSDINSTALL with INSTALL or MKDIR.

FINALLY:
I still have another patch pending (well, not a complete patch yet, it's
a partial patch to demonstrate the principle), which adds automatic
rebuilding of files generated by autoconf/configure. At the moment I
don't dare to submit it, because integrating this patch would require to
modify all Makefile.ins because we'd need to add a new "include " line
to each Makefile.in.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#
2# $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7exec_prefix = @exec_prefix@
8bindir = @bindir@
9libdir = @libdir@
10includedir = @includedir@
11manext = 1
12mandir = @mandir@/man$(manext)
13
14# FIXME: $EXEEXT should be set in a central cfg-file used for native
15#        compiling (e.g. gcc.cfg) instead of setting EXEEXE here.
16EXEEXT=@EXEEXT@
17
18VPATH = @srcdir@
19RTEMS_ROOT = @top_srcdir@
20PROJECT_ROOT = @PROJECT_ROOT@
21
22# we use host compiler in this directory
23USE_HOST_COMPILER=yes
24
25# C source names, if any, go here -- minus the .c
26C_PIECES=cklength eolstrip packhex unhex
27C_FILES=$(C_PIECES:%=%.c)
28C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o)
29
30H_FILES=
31
32SRCS=$(C_FILES) $(CC_FILES) $(H_FILES)
33OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
34
35# FIXME: building into $(ARCH) doesn't make sense for host programs
36PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \
37        $(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT)
38
39include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
40include $(RTEMS_ROOT)/make/leaf.cfg
41
42#
43# (OPTIONAL) Add local stuff here using +=
44#
45
46DEFINES  +=
47CPPFLAGS += -I.
48CFLAGS   +=
49
50LD_PATHS  +=
51LD_LIBS   +=
52LDFLAGS   +=
53
54#
55# Add your list of files to delete here.  The config files
56#  already know how to delete some stuff, so you may want
57#  to just run 'make clean' first to see what gets missed.
58#  'make clobber' already includes 'make clean'
59#
60
61CLEAN_ADDITIONS += $(HOST_ARCH)
62CLOBBER_ADDITIONS +=
63
64DESTDIR=${PROJECT_RELEASE}/build-tools
65
66$(DESTDIR):
67        $(BSDINSTALL) $(INSTDIRFLAGS) $@
68
69all:    $(ARCH) $(DESTDIR) $(SRCS) $(PGMS)
70        $(BSDINSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR)
Note: See TracBrowser for help on using the repository browser.