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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [examples/] [Makefile] - Diff between revs 28 and 174

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
# Mostly written by Jonathan Larmour, Red Hat, Inc.
# Mostly written by Jonathan Larmour, Red Hat, Inc.
# Reference to ecos.mak added by John Dallaway, eCosCentric Limited, 2003-01-20
# Reference to ecos.mak added by John Dallaway, eCosCentric Limited, 2003-01-20
# This file is in the public domain and may be used for any purpose
# This file is in the public domain and may be used for any purpose
# Usage:   make INSTALL_DIR=/path/to/ecos/install
# Usage:   make INSTALL_DIR=/path/to/ecos/install
INSTALL_DIR=$$(INSTALL_DIR) # override on make command line
INSTALL_DIR=$$(INSTALL_DIR) # override on make command line
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
include $(INSTALL_DIR)/include/pkgconf/ecos.mak
XCC           = $(ECOS_COMMAND_PREFIX)gcc
XCC           = $(ECOS_COMMAND_PREFIX)gcc
XCXX          = $(XCC)
XCXX          = $(XCC)
XLD           = $(XCC)
XLD           = $(XCC)
CFLAGS        = -I$(INSTALL_DIR)/include
CFLAGS        = -I$(INSTALL_DIR)/include
CXXFLAGS      = $(CFLAGS)
CXXFLAGS      = $(CFLAGS)
LDFLAGS       = -nostartfiles -L$(INSTALL_DIR)/lib -Ttarget.ld
LDFLAGS       = -nostartfiles -L$(INSTALL_DIR)/lib -Ttarget.ld
# RULES
# RULES
.PHONY: all clean
.PHONY: all clean
all: hello twothreads simple-alarm serial
all: hello twothreads simple-alarm serial
clean:
clean:
        -rm -f hello hello.o twothreads twothreads.o
        -rm -f hello hello.o twothreads twothreads.o
        -rm -f simple-alarm simple-alarm.o serial serial.o
        -rm -f simple-alarm simple-alarm.o serial serial.o
        -rm -f instrument-test instrument-test.o
        -rm -f instrument-test instrument-test.o
%.o: %.c
%.o: %.c
        $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
        $(XCC) -c -o $*.o $(CFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
%.o: %.cxx
%.o: %.cxx
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
%.o: %.C
%.o: %.C
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
%.o: %.cc
%.o: %.cc
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
        $(XCXX) -c -o $*.o $(CXXFLAGS) $(ECOS_GLOBAL_CFLAGS) $<
hello: hello.o
hello: hello.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
twothreads: twothreads.o
twothreads: twothreads.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
simple-alarm: simple-alarm.o
simple-alarm: simple-alarm.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
serial: serial.o
serial: serial.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
instrument-test: instrument-test.o
instrument-test: instrument-test.o
        $(XLD) $(LDFLAGS) $(ECOS_GLOBAL_LDFLAGS) -o $@ $@.o
        $(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.