projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
[fw/sdcc]
/
sim
/
ucsim
/
cmd.src
/
Makefile.in
diff --git
a/sim/ucsim/cmd.src/Makefile.in
b/sim/ucsim/cmd.src/Makefile.in
index 3edbab35dcc9ff47d7e6d1e0f48b0fcbdfed23a3..eaca51968b50736a88de21c5db0a7e1bf3b6d1a4 100644
(file)
--- a/
sim/ucsim/cmd.src/Makefile.in
+++ b/
sim/ucsim/cmd.src/Makefile.in
@@
-13,6
+13,10
@@
CXXCPP = @CXXCPP@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
+LEX = @LEX@
+YACC = @YACC@
+BISON_PLUS_PLUS = @BISON_PLUS_PLUS@
+
PRJDIR = ..
DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
PRJDIR = ..
DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
@@
-34,10
+38,12
@@
man2dir = $(mandir)/man2
infodir = @infodir@
srcdir = @srcdir@
infodir = @infodir@
srcdir = @srcdir@
-OBJECTS = cmdset.o newcmd.o cmdutil.o syntax.o \
+OBJECTS = cmdset.o
command.o
newcmd.o cmdutil.o syntax.o \
get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
- cmduc.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
# ------------------------------------------
# Compiling entire program or any subproject
# ------------------------------------------
@@
-60,6
+66,8
@@
uninstall:
# --------------------
check:
# --------------------
check:
+test:
+
# Performing installation test
# ----------------------------
# Performing installation test
# ----------------------------
@@
-81,9
+89,11
@@
Makefile.dep: *.cc *.h
include Makefile.dep
include clean.mk
include Makefile.dep
include clean.mk
-
#parser.cc: parser
.y
+
cmdpars.cc: cmdpars
.y
-#plex.cc: plex.l
+ifeq ($(DEVEL),yes)
+ cmdlex.cc: cmdlex.l cmdpars.h
+endif
# My rules
# --------
# My rules
# --------
@@
-91,21
+101,27
@@
include clean.mk
cmdlib: $(PRJDIR)/libcmd.a
$(PRJDIR)/libcmd.a: $(OBJECTS)
cmdlib: $(PRJDIR)/libcmd.a
$(PRJDIR)/libcmd.a: $(OBJECTS)
-
$(AR)
-rcu $*.a $(OBJECTS)
+
ar
-rcu $*.a $(OBJECTS)
$(RANLIB) $*.a
.cc.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
$(RANLIB) $*.a
.cc.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+#.y.cc:
+# rm -f $*.cc $*.h
+# $(YACC) -d $<
+# mv y.tab.c $*.cc
+# mv y.tab.h $*.h
+
.y.cc:
rm -f $*.cc $*.h
.y.cc:
rm -f $*.cc $*.h
- $(YACC) -d $<
- mv y.tab.c $*.cc
- mv y.tab.h $*.h
+ $(BISON_PLUS_PLUS) -d -o $*.cc $<
+ifeq ($(DEVEL),yes)
.l.cc:
rm -f $*.cc
.l.cc:
rm -f $*.cc
- $(LEX) -t $< >$*.cc
+ $(LEX) --c++ -o $*.cc $<
+endif
# Remaking configuration
# Remaking configuration