#
# Copyright (c) 1997 Software Engineering Research Laboratory,
# Department of Computer Science, University of Colorado at Boulder.
# All rights reserved.
#
# This software was developed by the Software Engineering Research
# Laboratory of the University of Colorado at Boulder.  Redistribution
# and use in source and binary forms are permitted provided that:
#
#    1. The above copyright notice and these paragraphs are duplicated 
#       in all such forms and that any documentation, and other 
#       materials related to such distribution and use acknowledge 
#       that the software was developed by the Software Engineering 
#       Research Laboratory of the University of Colorado at Boulder.
#    2. The redistribution and use of this software are solely for 
#       non-commercial purposes.
#
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#

#
# $Id: Makefile,v 1.4 1997/05/14 19:26:29 carzanig Exp $
#

# default target
all:

#
# This file parametrizes the makefile according to the platform
#
include Makefile.conf

NUCMLIB 	= ../lib
NUCMINC 	= ../inc

#
# System description
#
CC 		= gcc
DEBUGFLAG 	= -g
CFLAGS 		+= -Wall -O $(DEBUGFLAG) -I$(NUCMINC)
LDFLAGS 	+= -L$(NUCMLIB) -lnucm

all: newcollection checkin checkout

checkin: checkin.o tree.o config.h
	$(CC)  checkin.o tree.o $(LDFLAGS) -o $@

newcollection: newcollection.c config.h
	$(CC) $(CFLAGS) newcollection.c $(LDFLAGS) -o $@

checkout: checkout.c config.h
	$(CC) $(CFLAGS) checkout.c $(LDFLAGS) -o $@

install: $(EXAMPLE)
	cp $(EXAMPLE) $(EXPL); cd $(EXPL); chmod 644 $(EXAMPLE)

clean:
	rm -f *.o *~ core checkin checkout newcollection
