source: rtems/c/src/lib/libbsp/i386/pc386/tools/Makefile.in @ 5184958

4.104.114.84.95
Last change on this file since 5184958 was 5184958, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/98 at 18:47:44

Update from Pedro Romano <pmcnr@…> which replaces C++
versions of these utilities with C implementations.

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