# 
#  Copyright (c) 1989 Brian Sturgill
#  All rights reserved.
# 
#  Redistribution and use in source and binary forms are permitted
#  provided that the above copyright notice and this paragraph are
#  duplicated in all such forms and that any documentation,
#  advertising materials, and other materials related to such
#  distribution and use acknowledge that the software was developed
#  by Brian Sturgill and Raphael Finkel at the University of Kentucky,
#  Department of Computer Science.  The names of the University or the
#  authors may not be used to endorse or promote products derived
#  from this software without specific prior written permission.
#  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.
#

SATINCLUDE=-I$(SATSRC)/=Include -I../../=Include -I$(SATSRC)/Schedit -I$(VPATH) $(ADDINC)
#SATINCLUDE=-I$(SATSRC)/=Include -I../../=Include -I$(SATSRC)/Schedit $(ADDINC)

CFLAGS=$(DEBOPT) $(SATINCLUDE)


#.c.o:
#	$(CC) -c $(CFLAGS) $*.c

Nothing=
OBJ=\
	../libsat.a(checkitem.o) \
	../libsat.a(checkpattern.o) \
	../libsat.a(doremote.o) \
	../libsat.a(freesch.o) \
	../libsat.a(lock.o) \
	../libsat.a(mtime.o) \
	../libsat.a(mygets.o) \
	../libsat.a(openserver.o) \
	../libsat.a(permission.o) \
	../libsat.a(pulllock.o) \
	../libsat.a(readsch.o) \
	../libsat.a(rowio.o) \
	../libsat.a(strdup.o) \
	../libsat.a(username.o) \
	../libsat.a(writesch.o) \
	$(Nothing)

all: ../libsat.a

../libsat.a: $(OBJ)

permission.o: permission.c
	$(CC) -c $(CFLAGS) permission.c
	ar uc ../libsat.a permission.o

permission.c: permission.O
	defobj permission.O
	cp permission.h ../../=Include

clean:
	-rm -f *.ln
	-rm -f $(PROGS) a.out core lint.out permission.[ch]

lint:	permission.c
	$(LINT) -Csat $(SATINCLUDE) -hba *.c >lint.out
