home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2003 March
/
VPR0303A.ISO
/
AIBO
/
MoNet
/
common
/
libODA
/
Makefile
next >
Wrap
Makefile
|
2002-12-19
|
889b
|
48 lines
#
# Copyright 2002 Sony Corporation
#
# Permission to use, copy, modify, and redistribute this software for
# non-commercial use is hereby granted.
#
# This software is provided "as is" without warranty of any kind,
# either expressed or implied, including but not limited to the
# implied warranties of fitness for a particular purpose.
#
PREFIX=/usr/local/OPEN_R_SDK
CXX=$(PREFIX)/bin/mipsel-linux-g++
AR=$(PREFIX)/bin/mipsel-linux-ar
RANLIB=$(PREFIX)/bin/mipsel-linux-ranlib
CXXFLAGS= \
-O2 \
-g \
-I. \
-I$(PREFIX)/OPEN_R/include/R4000 \
-I$(PREFIX)/OPEN_R/include \
-I../include
#
# When OPENR_DEBUG is defined, OSYSDEBUG() is available.
#
#CXXFLAGS+= -DOPENR_DEBUG
OBJS = \
ODA.o \
TARGET=libODA.a
.PHONY: all clean
all: $(TARGET)
%.o: %.cc
$(CXX) $(CXXFLAGS) -o $@ -c $^
$(TARGET): $(OBJS)
rm -f $@
$(AR) r $@ $(OBJS)
$(RANLIB) $@
clean:
rm -f $(TARGET) *.o