home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2003 April
/
VPR0304.ISO
/
AIBO
/
AiboBiff2
/
AiboBiff
/
Makefile
< prev
next >
Wrap
Makefile
|
2002-12-20
|
980b
|
44 lines
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 -lInternet -lantMCOOP
CXXFLAGS= \
-O2 \
-g \
-I. \
-I$(PREFIX)/OPEN_R/include/R4000 \
-I$(PREFIX)/OPEN_R/include \
-I../../MoNet/common/include
#
# When OPENR_DEBUG is defined, OSYSDEBUG() is available.
#
#CXXFLAGS+= -DOPENR_DEBUG
.PHONY: all install clean
all: AiboBiff.bin
%.o: %.cc
$(CXX) $(CXXFLAGS) -o $@ -c $^
AiboBiffStub.cc: stub.cfg
$(STUBGEN) stub.cfg
AiboBiff.bin: AiboBiffStub.o AiboBiff.o AiboBiff.ocf
$(MKBIN) $(MKBINFLAGS) -o $@ $^ $(LIBS)
$(STRIP) $@
install: AiboBiff.bin
gzip -c AiboBiff.bin > $(INSTALLDIR)/OPEN-R/MW/OBJS/AIBOBIFF.BIN
clean:
rm -f *.o *.bin *.elf *.snap.cc
rm -f AiboBiffStub.h AiboBiffStub.cc def.h entry.h
rm -f $(INSTALLDIR)/OPEN-R/MW/OBJS/AIBOBIFF.BIN