LIBS=-latmd -lfl # lex may want  -ll  here
INCLUDES=-I../qgen -I.
OBJS=atmsigd.o io.o kernel.o proto.o q2931.o saal.o sscf.o sscop.o timeout.o \
  q.out.o lex.yy.o y.tab.o
SSCOP_OBJS=sscop.o
PGMS=atmsigd svc #test doesn't work anymore
TRASH=q.out.h q.out.o
MANS=

include ../Rules.make


test:			$(SSCOP_OBJS)

atmsigd:		$(OBJS)
			$(CC) $(LDFLAGS) -o atmsigd $(OBJS) $(LDLIBS) $(LIBS)

lex.yy.c:		cfg.l y.tab.h
			$(LEX) cfg.l

y.tab.c y.tab.h:	cfg.y ../lib/atm.h proto.h
			$(YACC) -d cfg.y

q.out.o:
			ln -s ../qgen/q.out.o

depend:			fake_q.out.h

fake_q.out.h:
			echo "! This must not compile" >q.out.h
