OpenCores
URL https://opencores.org/ocsvn/de1_olpcl2294_system/de1_olpcl2294_system/trunk

Subversion Repositories de1_olpcl2294_system

[/] [de1_olpcl2294_system/] [trunk/] [sw/] [ecos/] [shell/] [Makefile] - Blame information for rev 10

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 qaztronic
# Mostly written by Jonathan Larmour, Red Hat, Inc.
2
# Reference to ecos.mak added by John Dallaway, eCosCentric Limited, 2003-01-20
3
# This file is in the public domain and may be used for any purpose
4
 
5
# Usage:   make INSTALL_DIR=/path/to/ecos/install
6
 
7
# INSTALL_DIR=$$(INSTALL_DIR) # override on make command line
8
# INSTALL_DIR = ../ROM_slow/install
9 10 qaztronic
INSTALL_DIR = ../LPC2294_ram/install
10 7 qaztronic
 
11 10 qaztronic
OBJECT_FILES = parse.o main.o mem_func.o memtest.o dbg_sh.o
12
LIB_OBJECT_FILES = parse.o mem_func.o memtest.o dbg_sh.o
13
HEADER_FILES = lpc22xx.h dbg_sh.h parse.h shell_cmds.h memtest.h
14 7 qaztronic
 
15
 
16
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
17
 
18
XCC           = $(ECOS_COMMAND_PREFIX)gcc
19
XAR           = $(ECOS_COMMAND_PREFIX)ar
20
XCXX          = $(XCC)
21
XLD           = $(XCC)
22
 
23
CFLAGS        = -I$(INSTALL_DIR)/include
24
CXXFLAGS      = $(CFLAGS)
25
LDFLAGS       = -nostartfiles -L$(INSTALL_DIR)/lib -Ttarget.ld
26
 
27
# RULES
28
 
29
.PHONY: all clean
30
 
31
all:  dbg_sh dbg_sh_lib
32
 
33
clean:
34
        -rm -f dbg_sh libdbg_sh.a $(OBJECT_FILES)
35
 
36
%.o: %.c
37
        $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
38
 
39
%.o: %.cxx
40
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
41
 
42
%.o: %.C
43
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
44
 
45
%.o: %.cc
46
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
47
 
48
dbg_sh: $(OBJECT_FILES) $(HEADER_FILES)
49
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $(OBJECT_FILES)
50
 
51
dbg_sh_lib: $(OBJECT_FILES) $(HEADER_FILES)
52
        $(XAR) rcs libdbg_sh.a $(LIB_OBJECT_FILES)
53
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.