head     1.1;
branch   1.1.1;
access   ;
symbols  nastore3-beta-20000227:1.1.1.1 NAS:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2000.02.28.02.17.58;  author wrstuden;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2000.02.28.02.17.58;  author wrstuden;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@CC		= gcc
CFLAGS		= -g -Wall
RM		= /bin/rm -f

PROGS		= ms66_check ms66_dbck ms66_fetch
OBJS		= fsms_check.o finfo_check.o fsegs_check.o cart_check.o com.o
TARBALL		= ms66.tar

DB		?= /usr/pkg/pgsql
DBINC		= -I $(DB)/include
DEPEND		= .depend

all:	$(DEPEND) $(PROGS)

depend:	$(DEPEND)

$(DEPEND):
.if	exists(${DB})
	mkdep $(CFLAGS) $(DBINC) *.c
	@@echo "DB= ${DB}" >> ${DEPEND}
	@@echo "Starting make after depend"
	@@$(MAKE)
.else
	@@echo
	@@echo "This software uses the Postgres database package."
	@@echo "The directory ${DB} was expected and did not exist."
	@@echo "Please check where Postgres is installed and run"
	@@echo "make DB=pghome"
	@@echo "where pghome is the install directory for Postgres."
	@@false
.endif

clean:
	-$(RM) $(PROGS) *.o

clobber:	clean
	-$(RM) $(TARBALL) $(TARBALL).gz $(DEPEND)

tar:
	tar -cf $(TARBALL) Makefile *.[ch] *.1 *.sql
	gzip $(TARBALL)

ms66_check.o:
	$(CC) $(CFLAGS) -c ms66_check.c

com.o:
	$(CC) $(CFLAGS) -c com.c

cart_check.o:
	$(CC) $(CFLAGS) -c cart_check.c

fsms_check.o:
	$(CC) $(CFLAGS) -c fsms_check.c

finfo_check.o:
	$(CC) $(CFLAGS) -c finfo_check.c

fsegs_check.o:
	$(CC) $(CFLAGS) -c fsegs_check.c

ms66_dbck.o:
	$(CC) $(CFLAGS) -c ms66_dbck.c $(DBINC)

ms66_fetch.o:
	$(CC) $(CFLAGS) -c ms66_fetch.c $(DBINC)

ms66_check:	ms66_check.o $(OBJS)
	$(CC) $(CFLAGS) -o $@@ $@@.o $(OBJS)

ms66_dbck:	ms66_dbck.o
	$(CC) $(CFLAGS) -o ms66_dbck ms66_dbck.o -L$(DB)/lib -lpq

ms66_fetch:	ms66_fetch.o
	$(CC) $(CFLAGS) -o ms66_fetch ms66_fetch.o -L$(DB)/lib -lpq

.if	exists(${DEPEND})
.include	"$(DEPEND)"
.endif
@


1.1.1.1
log
@Import of snapshot of nastore3 code. Includes kernel code for dmfs, dmfs
user utilities, ms66 import and export, vvm, and volman. Also includes
makefile magic to automatically generate .tgz source files from the source.
Solaris support a bit of a question as zoularis is not working at the
moment.
@
text
@@
