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 8

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

powered by: WebSVN 2.1.0

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