#
# Copyright 2002,2003 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.
#

CXX=g++
AR=ar
RANLIB=ranlib
CXXFLAGS= \
	-O2 \
	-I. \
	-I../include
OBJS=$(patsubst %.cc,%.o,$(wildcard *.cc))	

TARGET=libPackagesLin.a

.PHONY: all clean doc

all: $(TARGET)

%.o: %.cc
	$(CXX) $(CXXFLAGS) -o $@ -c $^

$(TARGET): $(OBJS)
	rm -f $@
	$(AR) r $@ $(OBJS)
	$(RANLIB) $@


clean:
	rm -f $(TARGET) *.o 

