head	1.11;
access;
symbols
	ATH7_7:1.8
	ATH7_4:1.3
	ATH7_6:1.7;
locks; strict;
comment	@# @;


1.11
date	96.05.28.04.04.21;	author ghudson;	state Exp;
branches;
next	1.10;

1.10
date	96.03.19.11.06.28;	author warlord;	state Exp;
branches;
next	1.9;

1.9
date	96.03.19.01.50.25;	author ghudson;	state Exp;
branches;
next	1.8;

1.8
date	94.04.07.12.30.19;	author miki;	state Exp;
branches;
next	1.7;

1.7
date	93.06.29.19.17.28;	author vrt;	state Exp;
branches;
next	1.6;

1.6
date	93.04.29.17.50.54;	author vrt;	state Exp;
branches;
next	1.5;

1.5
date	93.02.23.19.12.45;	author probe;	state Exp;
branches;
next	1.4;

1.4
date	93.02.08.14.56.59;	author probe;	state Exp;
branches;
next	1.3;

1.3
date	91.07.09.08.38.32;	author epeisach;	state Exp;
branches;
next	1.2;

1.2
date	91.06.27.13.38.59;	author probe;	state Exp;
branches;
next	1.1;

1.1
date	91.06.27.13.38.15;	author probe;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Get rid of stupid symlink.
@
text
@BINDIR=$(ATHETCDIR)

SRCS= synctree.c rules.c glob_match.c bool_exp.c vtable.c err.c \
	util.c glob_match.c regexp.c
OBJS= synctree.o rules.o glob_match.o bool_exp.o vtable.o err.o \
	util.o y.tab.o version.o

#ifdef ibm032
CCDEF= -ma -DYYDEBUG -DLEXDEBUG
#endif
#ifdef vax
CCDEF= -DYYDEBUG -DLEXDEBUG
#endif
#if defined(mips) && defined(ultrix)
CCDEF= -Wf,-XNh1200 -DYYDEBUG -DLEXDEBUG
#endif
#if defined(_AUX_SOURCE)
#define CcCmd gcc -traditional
#endif
#if defined(SOLARIS)
CC = /mit/sunsoft/sun4bin/cc 
CCDEF= 
LDLIBS=  -lsocket -lnsl  -lelf -lw -ldl
#endif

LEX_LIB=	-ll

#ifdef linux
LEX_LIB=	-lfl
#endif

LIBS = $(YACC_LIB) $(LEX_LIB)

DEFINES= $(CCDEF)

SimpleProgram(synctree, $(OBJS),$(LIBS),$(BINDIR))
install_man(synctree.man,synctree.8)

build_program(regexp,regexp.o,,)

synctree.o: synctree.c switch.c
regexp.o: regexp.c
	$(CC) $(CFLAGS) -DTEST -c $*.c

y.tab.o: y.tab.c lex.yy.c synctree.h

y.tab.c: readrules.y
	yacc -vd readrules.y

lex.yy.c: readrules.l
	lex -v readrules.l

version.c: $(SRCS) switch.c synctree.h readrules.y readrules.l
	@@echo "Ignore the 'version.c: cannot create' warning, if one appears"
	-./newvers.sh
@


1.10
log
@Still needs Lex -- use Flex for Linux
@
text
@d4 1
a4 1
	util.c gm.c regexp.c
@


1.9
log
@Stop using liby and libl; they are nonportable.
@
text
@d26 8
d36 1
a36 1
SimpleProgram(synctree, $(OBJS),,$(BINDIR))
@


1.8
log
@Eliminated the need for ucblib
gcc does not manage to compile synctree.c, so replaced it with sunsift/cc
@
text
@d28 1
a28 1
SimpleProgram(synctree, $(OBJS), -ly -ll,$(BINDIR))
@


1.7
log
@we need dl explicitly for solaris
@
text
@d21 3
a23 2
CCDEF= -I/usr/ucbinclude 
LDLIBS=  -lsocket -lnsl /usr/ucblib/libucb.a -lelf -lw -ldl
@


1.6
log
@Solaris changes
@
text
@d22 1
a22 1
LDLIBS=  -lsocket -lnsl /usr/ucblib/libucb.a -lelf -lw
@


1.5
log
@Added dependencies for synctree.o (synctree.c, switch.c)
@
text
@d20 4
@


1.4
log
@Don't use -DYYDEBUG and -DLEXDEBUG unless necessary.
@
text
@d28 1
a28 1

@


1.3
log
@Ultrix should not have the -ma switch
@
text
@d9 1
a9 1
CCDEF= -ma
d11 3
d15 1
a15 1
CCDEF= -Wf,-XNh1200
d21 1
a21 1
DEFINES= $(CCDEF) -DYYDEBUG -DLEXDEBUG
@


1.2
log
@Changed installation directory
@
text
@d12 1
a12 1
CCDEF= -ma -Wf,-XNh1200
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
BINDIR=/usr/athena/lib/update
@
