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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [examples/] [Makefile] - Blame information for rev 807

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

Line No. Rev Author Line
1 786 skrzyp
# 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
 
9
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
10
 
11
XCC           = $(ECOS_COMMAND_PREFIX)gcc
12
XCXX          = $(XCC)
13
XLD           = $(XCC)
14
 
15
CFLAGS        = -I$(INSTALL_DIR)/include
16
CXXFLAGS      = $(CFLAGS)
17
LDFLAGS       = -nostartfiles -L$(INSTALL_DIR)/lib -Ttarget.ld
18
 
19
# RULES
20
 
21
.PHONY: all clean
22
 
23
all: hello twothreads simple-alarm serial
24
 
25
clean:
26
        -rm -f hello hello.o twothreads twothreads.o
27
        -rm -f simple-alarm simple-alarm.o serial serial.o
28
        -rm -f instrument-test instrument-test.o
29
 
30
%.o: %.c
31
        $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
32
 
33
%.o: %.cxx
34
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
35
 
36
%.o: %.C
37
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
38
 
39
%.o: %.cc
40
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
41
 
42
hello: hello.o
43
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
44
 
45
twothreads: twothreads.o
46
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
47
 
48
simple-alarm: simple-alarm.o
49
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
50
 
51
serial: serial.o
52
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
53
 
54
instrument-test: instrument-test.o
55
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o

powered by: WebSVN 2.1.0

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