source: network-demos/http/Makefile @ 2d06588

rtems-4-5-branch
Last change on this file since 2d06588 was 2d06588, checked in by Joel Sherrill <joel.sherrill@…>, on 05/25/00 at 14:03:15

Minor patch from Nick Simon <Nick.SIMON@…> to
more explicitly deal with object format conversion.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1#
2#  $Id$
3#
4
5SAMPLE=http
6PGM=${ARCH}/$(SAMPLE).exe
7
8MANAGERS=io event semaphore timer rate_monotonic
9
10# C source names, if any, go here -- minus the .c
11C_PIECES=init
12C_FILES=$(C_PIECES:%=%.c)
13C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
14
15H_FILES=
16
17DOCTYPES=
18DOCS=$(DOCTYPES:%=$(SAMPLE).%)
19
20SRCS=$(DOCS) $(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)
21OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)
22
23PRINT_SRCS=$(DOCS)
24
25PGM=${ARCH}/$(SAMPLE).exe
26
27include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
28include $(RTEMS_CUSTOM)
29include $(PROJECT_ROOT)/make/leaf.cfg
30
31#
32# (OPTIONAL) Add local stuff here using +=
33#
34
35DEFINES  +=
36CPPFLAGS +=
37CFLAGS   +=
38CFLAGS_LD += -Wl,--defsym -Wl,HeapSize=0xC0000
39CFLAGS_OPTIMIZE_V   +=
40CFLAGS_DEBUG_V   += -v -qrtems_debug
41
42LD_PATHS  +=
43LD_LIBS   +=
44
45#
46# Add your list of files to delete here.  The config files
47#  already know how to delete some stuff, so you may want
48#  to just run 'make clean' first to see what gets missed.
49#  'make clobber' already includes 'make clean'
50#
51
52CLEAN_ADDITIONS +=
53CLOBBER_ADDITIONS +=
54
55all:    ${ARCH} $(SRCS) $(PGM)
56
57${PGM}: $(OBJS) $(LINK_FILES)
58        tar cf $(ARCH)/tarfile index.html
59        cp $(ARCH)/tarfile .
60        $(OBJCOPY) -I binary -O elf32-powerpc tarfile $(ARCH)/tarfile.o
61        $(LD) -r -o $(ARCH)/temp.o  $(ARCH)/init.o $(ARCH)/tarfile.o
62        $(MV) $(ARCH)/temp.o  $(ARCH)/init.o
63        $(RM) $(ARCH)/temp.o
64        $(make-exe)
65
66# Install the program(s), appending _g or _p as appropriate.
67# for include files, just use $(INSTALL)
68install:  all
69        $(INSTALL_VARIANT) -m 555 ${PGM} ${PROJECT_RELEASE}/tests
Note: See TracBrowser for help on using the repository browser.