X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fcmd.src%2FMakefile.in;h=eaca51968b50736a88de21c5db0a7e1bf3b6d1a4;hb=3e1e4fc13111f5489f95ecda44ab105fcfa058d3;hp=c026f015b3096eb5368c4de772f1ea18daf0531b;hpb=f27da39dbcab5678aca6d8462f1cc37a643f37e9;p=fw%2Fsdcc diff --git a/sim/ucsim/cmd.src/Makefile.in b/sim/ucsim/cmd.src/Makefile.in index c026f015..eaca5196 100644 --- a/sim/ucsim/cmd.src/Makefile.in +++ b/sim/ucsim/cmd.src/Makefile.in @@ -43,6 +43,7 @@ OBJECTS = cmdset.o command.o newcmd.o cmdutil.o syntax.o \ cmduc.o cmdstat.o cmdmem.o \ cmdpars.o cmdlex.o +DEVEL = $(shell ( bash -c "test -e $(PRJDIR)/devel && echo yes" )) # Compiling entire program or any subproject # ------------------------------------------ @@ -90,7 +91,9 @@ include clean.mk cmdpars.cc: cmdpars.y -cmdlex.cc: cmdlex.l cmdpars.h +ifeq ($(DEVEL),yes) + cmdlex.cc: cmdlex.l cmdpars.h +endif # My rules # -------- @@ -114,9 +117,11 @@ $(PRJDIR)/libcmd.a: $(OBJECTS) rm -f $*.cc $*.h $(BISON_PLUS_PLUS) -d -o $*.cc $< +ifeq ($(DEVEL),yes) .l.cc: rm -f $*.cc $(LEX) --c++ -o $*.cc $< +endif # Remaking configuration