home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2003 March / VPR0303A.ISO / AIBO / MoNet / common / libMTN / Makefile next >
Makefile  |  2002-12-19  |  921b  |  50 lines

  1. #
  2. # Copyright 2002 Sony Corporation 
  3. #
  4. # Permission to use, copy, modify, and redistribute this software for
  5. # non-commercial use is hereby granted.
  6. #
  7. # This software is provided "as is" without warranty of any kind,
  8. # either expressed or implied, including but not limited to the
  9. # implied warranties of fitness for a particular purpose.
  10. #
  11.  
  12. PREFIX=/usr/local/OPEN_R_SDK
  13. CXX=$(PREFIX)/bin/mipsel-linux-g++
  14. AR=$(PREFIX)/bin/mipsel-linux-ar
  15. RANLIB=$(PREFIX)/bin/mipsel-linux-ranlib
  16. CXXFLAGS= \
  17.     -O2 \
  18.     -g \
  19.     -I. \
  20.     -I$(PREFIX)/OPEN_R/include/R4000 \
  21.     -I$(PREFIX)/OPEN_R/include \
  22.     -I../include
  23.  
  24. #
  25. # When OPENR_DEBUG is defined, OSYSDEBUG() is available.
  26. #
  27. #CXXFLAGS+= -DOPENR_DEBUG
  28.  
  29. OBJS        = \
  30.     MTN.o \
  31.     MTNFile.o \
  32.     MTNFile_Print.o \
  33.  
  34. TARGET=libMTN.a
  35.  
  36. .PHONY: all clean
  37.  
  38. all: $(TARGET)
  39.  
  40. %.o: %.cc
  41.     $(CXX) $(CXXFLAGS) -o $@ -c $^
  42.  
  43. $(TARGET): $(OBJS)
  44.     rm -f $@
  45.     $(AR) r $@ $(OBJS)
  46.     $(RANLIB) $@
  47.  
  48. clean:
  49.     rm -f $(TARGET) *.o 
  50.