source: rtems/cpukit/libmisc/Makefile.am @ 2afb22b

Last change on this file since 2afb22b was 2afb22b, checked in by Chris Johns <chrisj@…>, on Dec 23, 2017 at 7:18:56 AM

Remove make preinstall

A speciality of the RTEMS build system was the make preinstall step. It
copied header files from arbitrary locations into the build tree. The
header files were included via the -Bsome/build/tree/path GCC command
line option.

This has at least seven problems:

  • The make preinstall step itself needs time and disk space.
  • Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error.
  • There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult.
  • The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit.
  • An introduction of a new build system is difficult.
  • Include paths specified by the -B option are system headers. This may suppress warnings.
  • The parallel build had sporadic failures on some hosts.

This patch removes the make preinstall step. All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.

The new cpukit include directories are:

  • cpukit/include
  • cpukit/score/cpu/@RTEMS_CPU@/include
  • cpukit/libnetworking

The new BSP include directories are:

  • bsps/include
  • bsps/@RTEMS_CPU@/include
  • bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include

There are build tree include directories for generated files.

The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.

The "bootstrap -p" option was removed. The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.

Update #3254.

  • Property mode set to 100644
File size: 7.1 KB
Line 
1##
2##
3
4include $(top_srcdir)/automake/compile.am
5
6EXTRA_DIST = README
7
8noinst_LIBRARIES =
9
10## bspcmdline
11noinst_LIBRARIES += libbspcmdline.a
12libbspcmdline_a_SOURCES = bspcmdline/bspcmdline_get.c \
13    bspcmdline/bspcmdline_getparam.c bspcmdline/bspcmdline_getparamraw.c \
14    bspcmdline/bspcmdline_getparamrhs.c
15
16## capture
17EXTRA_DIST += capture/README
18
19noinst_LIBRARIES += libcapture.a
20libcapture_a_SOURCES = capture/capture.c capture/capture-cli.c \
21    capture/capture_user_extension.c capture/capture_buffer.c \
22    capture/capture_support.c \
23    capture/capture.h capture/captureimpl.h capture/capture-cli.h \
24    capture/capture_buffer.h \
25    capture/rtems-trace-buffer-vars.c capture/rtems-trace-buffer-vars.h
26
27## cpuuse
28EXTRA_DIST += cpuuse/README
29
30noinst_LIBRARIES += libcpuuse.a
31libcpuuse_a_SOURCES = cpuuse/cpuusagereport.c cpuuse/cpuusagereset.c \
32     cpuuse/cpuuse.h cpuuse/cpuusagedata.c cpuuse/cpuusagetop.c
33libcpuuse_a_SOURCES += cpuuse/cpuinforeport.c
34
35## devnull
36noinst_LIBRARIES += libdevnull.a
37libdevnull_a_SOURCES = devnull/devnull.c devnull/devnull.h \
38    devnull/devzero.c devnull/devzero.h
39
40noinst_LIBRARIES += libdummy.a
41libdummy_a_SOURCES = dummy/default-configuration.c dummy/dummy-networking.c
42
43## dumpbuf
44noinst_LIBRARIES += libdumpbuf.a
45libdumpbuf_a_SOURCES = dumpbuf/dumpbuf.c dumpbuf/dumpbuf.h
46
47## monitor
48noinst_LIBRARIES += libmonitor.a
49libmonitor_a_SOURCES = monitor/mon-command.c monitor/mon-symbols.c \
50    monitor/mon-prmisc.c monitor/mon-monitor.c monitor/mon-object.c \
51    monitor/mon-server.c monitor/mon-task.c monitor/mon-queue.c \
52    monitor/mon-driver.c monitor/mon-itask.c monitor/mon-extension.c \
53    monitor/mon-manager.c monitor/mon-config.c monitor/mon-part.c \
54    monitor/mon-region.c monitor/mon-sema.c monitor/mon-editor.c \
55    monitor/symbols.h monitor/monitor.h
56if LIBNETWORKING
57libmonitor_a_SOURCES += monitor/mon-network.c
58endif
59if HAS_MP
60libmonitor_a_SOURCES += monitor/mon-mpci.c
61endif
62
63EXTRA_DIST += monitor/README
64
65## fb
66noinst_LIBRARIES += libmw-fb.a
67libmw_fb_a_SOURCES = fb/mw_print.c fb/mw_uid.c fb/fb.h fb/mw_uid.h
68
69## rtems-fdt
70noinst_LIBRARIES += librtemsfdt.a
71librtemsfdt_a_SOURCES = rtems-fdt/rtems-fdt-shell.c rtems-fdt/rtems-fdt-shell.h \
72    rtems-fdt/rtems-fdt.c rtems-fdt/rtems-fdt.h
73
74## mouse
75noinst_LIBRARIES += libmouse.a
76libmouse_a_SOURCES = mouse/mouse_parser.c mouse/serial_mouse.c
77EXTRA_DIST += mouse/README
78
79## redirector
80noinst_LIBRARIES += libredirector.a
81libredirector_a_SOURCES = redirector/stdio-redirect.c redirector/stdio-redirect.h
82
83## shell
84if LIBSHELL
85noinst_LIBRARIES += libshell.a
86libshell_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shell
87libshell_a_SOURCES = shell/cat_file.c shell/cmds.c shell/internal.h \
88    shell/main_alias.c shell/main_cat.c shell/main_cd.c shell/cmp-ls.c \
89    shell/main_chdir.c shell/main_chmod.c shell/main_chroot.c \
90    shell/main_cp.c shell/main_cpuuse.c shell/main_date.c shell/main_dir.c \
91    shell/main_echo.c shell/main_exit.c shell/main_halt.c shell/main_help.c \
92    shell/main_id.c shell/main_logoff.c shell/main_ln.c shell/main_ls.c \
93    shell/main_mallocinfo.c shell/main_md5.c shell/main_mdump.c \
94    shell/main_medit.c shell/main_mfill.c shell/main_mkdir.c \
95    shell/main_mount.c shell/main_mmove.c shell/main_msdosfmt.c \
96    shell/main_mv.c shell/main_perioduse.c shell/main_top.c \
97    shell/main_pwd.c shell/main_rm.c shell/main_rmdir.c shell/main_sleep.c \
98    shell/main_stackuse.c shell/main_tty.c shell/main_umask.c \
99    shell/main_unmount.c shell/main_blksync.c shell/main_whoami.c \
100    shell/shell.c shell/shell_cmdset.c shell/shell_getchar.c \
101    shell/shell_getprompt.c shell/shellconfig.c \
102    shell/shellconfig.h shell/shell.h shell/shell_makeargs.c \
103    shell/filemode.c shell/pwcache.c shell/print-ls.c \
104    shell/write_file.c shell/utils-cp.c  shell/utils-ls.c \
105    shell/err.c shell/errx.c shell/verr.c shell/vis.c \
106    shell/verrx.c shell/vwarn.c shell/vwarnx.c shell/warn.c shell/warnx.c \
107    shell/fts.c shell/print_heapinfo.c shell/main_wkspaceinfo.c \
108    shell/shell_script.c shell/login_prompt.c shell/login_check.c \
109    shell/fdisk.c shell/main_rtc.c \
110    shell/dd-args.c shell/main_dd.c shell/dd-conv.c shell/dd-conv_tab.c \
111    shell/dd-misc.c shell/dd-position.c \
112    shell/main_hexdump.c shell/hexdump-conv.c shell/hexdump-display.c \
113    shell/hexdump-odsyntax.c shell/hexdump-parse.c shell/hexsyntax.c \
114    shell/main_time.c shell/main_mknod.c \
115    shell/main_setenv.c shell/main_getenv.c shell/main_unsetenv.c \
116    shell/main_mkrfs.c shell/main_debugrfs.c shell/main_df.c \
117    shell/main_lsof.c shell/main_edit.c \
118    shell/main_blkstats.c shell/main_rtrace.c \
119    shell/shell-wait-for-input.c
120libshell_a_SOURCES += shell/main_cmdls.c
121libshell_a_SOURCES += shell/main_cmdchown.c
122libshell_a_SOURCES += shell/main_cmdchmod.c
123libshell_a_SOURCES += shell/main_cpuinfo.c
124libshell_a_SOURCES += shell/main_profreport.c
125
126if LIBDRVMGR
127libshell_a_SOURCES += shell/main_drvmgr.c
128endif
129
130if LIBPCI
131libshell_a_SOURCES += shell/main_pci.c
132endif
133
134if LIBNETWORKING
135libshell_a_SOURCES += \
136    shell/main_ifconfig.c shell/main_route.c shell/main_netstats.c \
137    shell/main_ping.c
138endif
139endif
140
141EXTRA_DIST += shell/README
142
143## serdbg
144
145if LIBSERDBG
146noinst_LIBRARIES += libserdbg.a
147libserdbg_a_SOURCES = serdbg/serdbg.c serdbg/serdbgio.c \
148    serdbg/termios_printk.c serdbg/serdbgcnf.h serdbg/serdbg.h \
149    serdbg/termios_printk_cnf.h serdbg/termios_printk.h
150endif
151
152EXTRA_DIST += serdbg/README
153
154## stackchk
155noinst_LIBRARIES += libstackchk.a
156libstackchk_a_SOURCES = stackchk/check.c \
157    stackchk/stackchk.h
158
159EXTRA_DIST += stackchk/README
160
161## libuntar
162noinst_LIBRARIES += libuntar.a
163libuntar_a_SOURCES = untar/untar.c untar/untar_txz.c untar/untar_tgz.c \
164        untar/untar.h
165
166EXTRA_DIST += untar/README
167
168## stringto
169noinst_LIBRARIES += libstringto.a
170libstringto_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/stringto
171libstringto_a_SOURCES = stringto/stringtodouble.c stringto/stringtofloat.c \
172    stringto/stringtolongdouble.c \
173    stringto/stringtoint.c stringto/stringtolong.c stringto/stringtolonglong.c \
174    stringto/stringtopointer.c stringto/stringtounsignedint.c \
175    stringto/stringtounsignedchar.c stringto/stringtounsignedlong.c \
176    stringto/stringtounsignedlonglong.c
177
178## testsupport
179noinst_LIBRARIES += libtestsupport.a
180libtestsupport_a_SOURCES =
181libtestsupport_a_SOURCES += testsupport/testbeginend.c
182libtestsupport_a_SOURCES += testsupport/testbusy.c
183libtestsupport_a_SOURCES += testsupport/testextension.c
184libtestsupport_a_SOURCES += testsupport/testparallel.c
185libtestsupport_a_SOURCES += testsupport/testwrappers.c
186
187## fsmount
188noinst_LIBRARIES += libfsmount.a
189libfsmount_a_SOURCES = fsmount/fsmount.c fsmount/fsmount.h
190
191## utf8proc
192if LIBUTF8PROC
193noinst_LIBRARIES += libutf8proc.a
194libutf8proc_a_SOURCES = utf8proc/utf8proc.c
195endif
196
197## uuid
198noinst_LIBRARIES += libuuid.a
199libuuid_a_SOURCES = uuid/clear.c uuid/compare.c uuid/copy.c uuid/gen_uuid.c \
200        uuid/isnull.c uuid/pack.c uuid/parse.c uuid/unpack.c uuid/unparse.c \
201        uuid/uuid_time.c uuid/uuidd.h uuid/uuidP.h
202
203## xz-embedded
204noinst_LIBRARIES += libxz.a
205libxz_a_SOURCES = xz/xz/h xz/xz_crc32.c \
206        xz/xz_dec_lzma2.c xz/xz_dec_stream.c
207
208EXTRA_DIST += xz/README xz/COPING
209
210## ---
211include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.