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 10

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 qaztronic
# This file is in the public domain and may be used for any purpose
2
 
3
# Usage:   make INSTALL_DIR=/path/to/ecos/install
4
 
5
# INSTALL_DIR=$$(INSTALL_DIR) # override on make command line
6 10 qaztronic
# INSTALL_DIR = ../LPC2294_ram/install
7
INSTALL_DIR = ../LPC2294_ram_no_net/install
8 7 qaztronic
 
9
 
10 10 qaztronic
# main
11
MAIN_PATH = .
12 7 qaztronic
 
13 10 qaztronic
MAIN_OBJECT_FILES = $(MAIN_PATH)/main.o
14
 
15
MAIN_HEADER_FILES = $(MAIN_PATH)/lpc22xx.h \
16
                    $(MAIN_PATH)/shell_cmds.h \
17
 
18
# debug shell
19
DBG_SH_PATH = ../shell
20
 
21
DBG_SH_OBJECT_FILES = $(DBG_SH_PATH)/parse.o \
22
                      $(DBG_SH_PATH)/mem_func.o \
23
                      $(DBG_SH_PATH)/memtest.o \
24
                      $(DBG_SH_PATH)/dbg_sh.o
25
 
26
DBG_SH_HEADER_FILES = $(DBG_SH_PATH)/dbg_sh.h \
27
                      $(DBG_SH_PATH)/parse.h \
28
                      $(DBG_SH_PATH)/memtest.h
29
 
30
 
31
OBJECT_FILES = $(DBG_SH_OBJECT_FILES) $(MAIN_OBJECT_FILES)
32
HEADER_FILES = $(DBG_SH_HEADER_FILES) $(MAIN_HEADER_FILES)
33
 
34
 
35 7 qaztronic
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
36
 
37
XCC           = $(ECOS_COMMAND_PREFIX)gcc
38 10 qaztronic
XAR           = $(ECOS_COMMAND_PREFIX)ar
39 7 qaztronic
XCXX          = $(XCC)
40
XLD           = $(XCC)
41
 
42 10 qaztronic
CFLAGS        = -I$(INSTALL_DIR)/include -I $(MAIN_PATH)/
43 7 qaztronic
CXXFLAGS      = $(CFLAGS)
44
LDFLAGS       = -nostartfiles -L$(INSTALL_DIR)/lib -Ttarget.ld
45
 
46
# RULES
47
 
48
.PHONY: all clean
49
 
50
all:  debug
51
 
52
clean:
53
        -rm -f debug $(OBJECT_FILES)
54
 
55
%.o: %.c
56
        $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
57
 
58
%.o: %.cxx
59
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
60
 
61
%.o: %.C
62
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
63
 
64
%.o: %.cc
65
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
66
 
67
debug: $(OBJECT_FILES) $(HEADER_FILES)
68 10 qaztronic
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $(OBJECT_FILES)
69 7 qaztronic
 

powered by: WebSVN 2.1.0

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