RSS Git Download  Clone
Raw Blame History
################################################################################
#	Makefile for BIdl
#			T.Barnaby,	BEAM Ltd,	2/5/03
#				updated by	D.Korchagin,	CERN AB-BI-SW,	2007-08-31
################################################################################
#

TOP	= ../..

include $(TOP)/Makefile.config

#DEBUGFLAGS	= -g

DIRS	= test?
OBJS	= bidl$(DARCH).o cgram$(DARCH).o clex$(DARCH).o Node$(DARCH).o Type$(DARCH).o Gen$(DARCH).o GenBoap$(DARCH).o GenBData$(DARCH).o
OBJS	+= GenBDataPy$(DARCH).o GenBDataMySql$(DARCH).o

all:	bidl

install:	all
	mkdir -p $(BINDIR)
	install bidl $(BINDIR)

includes:

libs:

clean:
	rm -f *$(DARCH).o bidl cgram.cc cgram.hh clex.cc cgram.output
	(for d in $(DIRS); do (cd $$d; make clean); done)

# Program files
bidl:	$(OBJS)
	$(LINK.cc) $(CXXFLAGS) -o bidl $(OBJS) $(LDFLAGS) $(LDLIBS)

# Yacc and Lex bits
cgram.cc:	cgram.y
	bison -d cgram.y -o cgram.cc

clex.cc:	clex.l
	flex -oclex.cc clex.l

backup:
	tar -czf Backup/`cat Backup/Number`.tar.gz Makefile *.h *.cc *.y *.l test1 test2
	expr `cat Backup/Number` + 1 > Backup/Number