################################################################################ # 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.o cgram.o clex.o Node.o Type.o Gen.o GenBoap.o GenBData.o OBJS += GenBDataPy.o GenBDataMySql.o OBJS += GenBoapSwigPython.o OBJS += GenBoapPython.o OBJS += GenDataMc.o GenBoapMc.o GenBoapMcComms.o OBJS += GenBoapPhp.o all: bidl install: all mkdir -p $(BINDIR) install bidl $(BINDIR) includes: libs: clean: rm -f *.d *.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