home *** CD-ROM | disk | FTP | other *** search
Makefile | 2002-12-20 | 1.4 KB | 60 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
- INSTALLDIR=../MS
- CXX=$(PREFIX)/bin/mipsel-linux-g++
- STRIP=$(PREFIX)/bin/mipsel-linux-strip
- MKBIN=$(PREFIX)/OPEN_R/bin/mkbin
- STUBGEN=$(PREFIX)/OPEN_R/bin/stubgen2
- MKBINFLAGS=-p $(PREFIX)
- LIBS=-L$(PREFIX)/OPEN_R/lib -lObjectComm -lOPENR
- LIBODADIR=../common/libODA
- LIBODA=$(LIBODADIR)/libODA.a
- CXXFLAGS= \
- -O2 \
- -g \
- -I. \
- -I$(PREFIX)/OPEN_R/include/R4000 \
- -I$(PREFIX)/OPEN_R/include \
- -I../common/include
-
- #
- # When OPENR_DEBUG is defined, OSYSDEBUG() is available.
- #
- #CXXFLAGS+= -DOPENR_DEBUG
-
- .PHONY: all install clean
-
- all: soundAgent.bin
-
- %.o: %.cc
- $(CXX) $(CXXFLAGS) -o $@ -c $^
-
- SoundAgentStub.cc: stub.cfg
- $(STUBGEN) stub.cfg
-
- $(LIBODA):
- (cd $(LIBODADIR); make)
-
- soundAgent.bin: SoundAgentStub.o SoundAgent.o WAV.o $(LIBODA) soundAgent.ocf
- $(MKBIN) $(MKBINFLAGS) -o $@ $^ $(LIBS)
- $(STRIP) $@
-
- install: soundAgent.bin
- gzip -c soundAgent.bin > $(INSTALLDIR)/OPEN-R/MW/OBJS/SOUNDAGT.BIN
-
- clean:
- (cd $(LIBODADIR); make clean)
- rm -f *.o *.bin *.elf *.snap.cc
- rm -f SoundAgentStub.h SoundAgentStub.cc def.h entry.h
- rm -f $(INSTALLDIR)/OPEN-R/MW/OBJS/SOUNDAGT.BIN
-