home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2003 April / VPR0304.ISO / AIBO / AiboBiff2 / AiboBiff / Makefile < prev    next >
Makefile  |  2002-12-20  |  980b  |  44 lines

  1. PREFIX=/usr/local/OPEN_R_SDK
  2. INSTALLDIR=../MS
  3. CXX=$(PREFIX)/bin/mipsel-linux-g++
  4. STRIP=$(PREFIX)/bin/mipsel-linux-strip
  5. MKBIN=$(PREFIX)/OPEN_R/bin/mkbin
  6. STUBGEN=$(PREFIX)/OPEN_R/bin/stubgen2
  7. MKBINFLAGS=-p $(PREFIX)
  8. LIBS=-L$(PREFIX)/OPEN_R/lib -lObjectComm -lOPENR -lInternet -lantMCOOP
  9. CXXFLAGS= \
  10.     -O2 \
  11.     -g \
  12.     -I. \
  13.     -I$(PREFIX)/OPEN_R/include/R4000 \
  14.     -I$(PREFIX)/OPEN_R/include \
  15.     -I../../MoNet/common/include
  16.  
  17. #
  18. # When OPENR_DEBUG is defined, OSYSDEBUG() is available.
  19. #
  20. #CXXFLAGS+= -DOPENR_DEBUG
  21.  
  22. .PHONY: all install clean
  23.  
  24. all: AiboBiff.bin
  25.  
  26. %.o: %.cc
  27.     $(CXX) $(CXXFLAGS) -o $@ -c $^
  28.  
  29. AiboBiffStub.cc: stub.cfg
  30.     $(STUBGEN) stub.cfg    
  31.  
  32. AiboBiff.bin: AiboBiffStub.o AiboBiff.o AiboBiff.ocf
  33.     $(MKBIN) $(MKBINFLAGS) -o $@ $^ $(LIBS)
  34.     $(STRIP) $@
  35.  
  36. install: AiboBiff.bin
  37.     gzip -c AiboBiff.bin > $(INSTALLDIR)/OPEN-R/MW/OBJS/AIBOBIFF.BIN
  38.  
  39. clean:
  40.     rm -f *.o *.bin *.elf *.snap.cc
  41.     rm -f AiboBiffStub.h AiboBiffStub.cc def.h entry.h
  42.     rm -f $(INSTALLDIR)/OPEN-R/MW/OBJS/AIBOBIFF.BIN
  43.  
  44.