home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2003 March / VPR0303A.ISO / AIBO / MoNet / common / libODA / Makefile next >
Makefile  |  2002-12-19  |  889b  |  48 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.     ODA.o \
  31.  
  32. TARGET=libODA.a
  33.  
  34. .PHONY: all clean
  35.  
  36. all: $(TARGET)
  37.  
  38. %.o: %.cc
  39.     $(CXX) $(CXXFLAGS) -o $@ -c $^
  40.  
  41. $(TARGET): $(OBJS)
  42.     rm -f $@
  43.     $(AR) r $@ $(OBJS)
  44.     $(RANLIB) $@
  45.  
  46. clean:
  47.     rm -f $(TARGET) *.o 
  48.