source:
rtems/cpukit/libmisc/shell/Makefile.am
@
22b689b
Last change on this file since 22b689b was 22b689b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/14/02 at 12:13:26 | |
---|---|
|
|
File size: 892 bytes |
Rev | Line | |
---|---|---|
[dd74e612] | 1 | ## |
2 | ## $Id$ | |
3 | ## | |
4 | ||
5 | ||
6 | include_rtemsdir = $(includedir)/rtems | |
7 | ||
8 | LIBNAME = libshell-tmp | |
9 | LIB = $(ARCH)/$(LIBNAME).a | |
10 | ||
[70d689a] | 11 | C_FILES = cmds.c shell.c |
[45e4f321] | 12 | C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
[dd74e612] | 13 | |
[22b689b] | 14 | if RTEMS_LIBSHELL |
[8e2b4de] | 15 | include_rtems_HEADERS = shell.h |
[22b689b] | 16 | endif |
[dd74e612] | 17 | |
18 | OBJS = $(C_O_FILES) | |
19 | ||
20 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg | |
21 | include $(top_srcdir)/../../../automake/compile.am | |
22 | include $(top_srcdir)/../../../automake/lib.am | |
23 | ||
24 | $(PROJECT_INCLUDE)/rtems: | |
25 | @$(mkinstalldirs) $@ | |
26 | $(PROJECT_INCLUDE)/rtems/%.h: %.h | |
27 | $(INSTALL_DATA) $< $@ | |
28 | ||
29 | # | |
30 | # (OPTIONAL) Add local stuff here using += | |
31 | # | |
32 | ||
33 | $(LIB): $(OBJS) | |
34 | $(make-library) | |
35 | ||
[aea9bb46] | 36 | PREINSTALL_FILES = $(PROJECT_INCLUDE)/rtems \ |
[dd74e612] | 37 | $(include_rtems_HEADERS:%=$(PROJECT_INCLUDE)/rtems/%) |
38 | ||
[22b689b] | 39 | if RTEMS_LIBSHELL |
[dd74e612] | 40 | all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB) |
[22b689b] | 41 | endif |
[dd74e612] | 42 | |
43 | .PRECIOUS: $(LIB) | |
44 | ||
[22b689b] | 45 | EXTRA_DIST = README shell.c cmds.c shell.h |
[dd74e612] | 46 | |
47 | include $(top_srcdir)/../../../automake/local.am |
Note: See TracBrowser
for help on using the repository browser.