
# Copyright Notices

# This software was developed for use by the U.S. Government as
# represented by the Administrator of the National Aeronautics and
# Space Administration. No copyright is claimed in the United States
# under 17 U.S.C. 105.

# This software may be used, copied, and provided to others only as
# permitted under the terms of the contract or other agreement under
# which it was acquired from the U.S. Government.  Neither title to nor
# ownership of the software is hereby transferred.  This notice shall
# remain on all copies of the software.

include ../commonMakeOptions.imake

SOURCES=$(wildcard *.cc)

OBJECTS=$(SOURCES:%.cc=%.o)

all: depend $(OBJECTS)
	echo $@ > $@

libConstraintNetwork.a: $(OBJECTS)
	$(AR) $@ $?
	$(RANLIB) $@

libConstraintNetwork.so: $(OBJECTS) 
	$(LD) $(LDFLAG) -o $@ $^

clean:
	/bin/rm -f *.o *.so *.a all depend

depend: $(SOURCES) makefile ../Includes/version.hh
	$(DEPEND)
	$(foreach OBJ,$(wildcard *.o),test -f $(basename $(OBJ)).cc || rm $(OBJ); )
	test -s depend

include depend
