24 lines
722 B
Makefile
24 lines
722 B
Makefile
# cnd Makefile
|
|
# (C)2005, Dan Ponte
|
|
# $Amigan: phoned/phoned/Makefile,v 1.9 2005/06/12 15:22:56 dcp1990 Exp $
|
|
include ../global.mk
|
|
# basic stuff. we append for a reason.
|
|
CPPFLAGS+=-I../include -DDEBUG -DYY_NO_UNPUT
|
|
CFLAGS+=-g -Wall -W -ansi ${CPPFLAGS} -pthread
|
|
LDFLAGS+=-lutil -lpcre
|
|
# keep these up to date.
|
|
MAINBIN=phoned
|
|
SRCS=main.c init.c log.c cfg.c socket.c y.tab.c lex.yy.c signals.c cid.c modem.c notify.c filters.c
|
|
OBJS=main.o init.o log.o cfg.o socket.o y.tab.o lex.yy.o signals.o cid.o modem.o notify.o filters.o
|
|
OHDRS=y.tab.h
|
|
CLEANFILES=y.tab.c y.tab.h lex.yy.c
|
|
LEX=lex
|
|
YACC=yacc
|
|
|
|
include ../main.mk
|
|
|
|
y.tab.h: y.tab.c
|
|
y.tab.c: config.y
|
|
$(YACC) -d config.y
|
|
lex.yy.c: config.l y.tab.c y.tab.h
|
|
$(LEX) config.l
|