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

Subversion Repositories de1_olpcl2294_system

[/] [de1_olpcl2294_system/] [trunk/] [sw/] [ecos/] [debug/] [Makefile] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 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
INSTALL_DIR = ../LPC2294_ram/LPC2294_ram_install
10
 
11
OBJECT_FILES = main.o
12
HEADER_FILES = lpc22xx.h lib_dbg_sh.h
13
 
14
 
15
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
16
 
17
XCC           = $(ECOS_COMMAND_PREFIX)gcc
18
XCXX          = $(XCC)
19
XLD           = $(XCC)
20
 
21
CFLAGS        = -I$(INSTALL_DIR)/include
22
CXXFLAGS      = $(CFLAGS)
23
LDFLAGS       = -nostartfiles -L$(INSTALL_DIR)/lib -Ttarget.ld
24
 
25
# RULES
26
 
27
.PHONY: all clean
28
 
29
all:  debug
30
 
31
clean:
32
        -rm -f debug $(OBJECT_FILES)
33
 
34
%.o: %.c
35
        $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
36
 
37
%.o: %.cxx
38
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
39
 
40
%.o: %.C
41
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
42
 
43
%.o: %.cc
44
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
45
 
46
debug: $(OBJECT_FILES) $(HEADER_FILES)
47
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $(OBJECT_FILES) -static -L../shell -ldbg_sh
48
 

powered by: WebSVN 2.1.0

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