projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* device/lib/pic16/Makefile.common.in,
[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 c026f015b3096eb5368c4de772f1ea18daf0531b..cf3f6580b1e865c1c49ed4af4cf273f2c6577083 100644
(file)
--- a/
sim/ucsim/cmd.src/Makefile.in
+++ b/
sim/ucsim/cmd.src/Makefile.in
@@
-17,32
+17,43
@@
LEX = @LEX@
YACC = @YACC@
BISON_PLUS_PLUS = @BISON_PLUS_PLUS@
YACC = @YACC@
BISON_PLUS_PLUS = @BISON_PLUS_PLUS@
-PRJDIR = ..
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
-CPPFLAGS = @CPPFLAGS@ -I
. -I$(PRJDIR
) \
- -I$(
PRJDIR)/sim.src -I$(PRJDIR
)/gui.src
+CPPFLAGS = @CPPFLAGS@ -I
$(srcdir) -I$(top_srcdir) -I$(top_builddir
) \
+ -I$(
top_srcdir)/sim.src -I$(top_srcdir
)/gui.src
CFLAGS = @CFLAGS@ -Wall
CXXFLAGS = @CXXFLAGS@ -Wall
M_OR_MM = @M_OR_MM@
CFLAGS = @CFLAGS@ -Wall
CXXFLAGS = @CXXFLAGS@ -Wall
M_OR_MM = @M_OR_MM@
+WINSOCK_AVAIL = @WINSOCK_AVAIL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
datadir = @datadir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
datadir = @datadir@
+datarootdir = @datarootdir@
includedir = @includedir@
mandir = @mandir@
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
infodir = @infodir@
srcdir = @srcdir@
includedir = @includedir@
mandir = @mandir@
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
infodir = @infodir@
srcdir = @srcdir@
+VPATH = @srcdir@
-OBJECTS = cmdset.o command.o
newcmd.o
cmdutil.o syntax.o \
+OBJECTS = cmdset.o command.o cmdutil.o syntax.o \
get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
cmduc.o cmdstat.o cmdmem.o \
get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
cmduc.o cmdstat.o cmdmem.o \
- cmdpars.o cmdlex.o
+ cmdpars.o cmdlex.o
newcmd.o
+ifeq ($(WINSOCK_AVAIL), 1)
+OBJECTS += newcmdwin32.o
+else
+OBJECTS += newcmdposix.o
+endif
+
+DEVEL = $(shell test -e $(top_builddir)/devel && echo yes)
# Compiling entire program or any subproject
# ------------------------------------------
# Compiling entire program or any subproject
# ------------------------------------------
@@
-82,22
+93,24
@@
installdirs:
# ---------------------
dep: Makefile.dep
# ---------------------
dep: Makefile.dep
-Makefile.dep:
*.cc
*.h
- $(CXXCPP) $(CPPFLAGS) $(M_OR_MM)
*.cc
>Makefile.dep
+Makefile.dep:
$(srcdir)/*.cc $(srcdir)/
*.h
+ $(CXXCPP) $(CPPFLAGS) $(M_OR_MM)
$(addprefix $(srcdir)/, $(OBJECTS:.o=.cc))
>Makefile.dep
include Makefile.dep
include Makefile.dep
-include clean.mk
+include
$(srcdir)/
clean.mk
cmdpars.cc: cmdpars.y
cmdpars.cc: cmdpars.y
-cmdlex.cc: cmdlex.l cmdpars.h
+ifeq ($(DEVEL),yes)
+ cmdlex.cc: cmdlex.l cmdpars.h
+endif
# My rules
# --------
# My rules
# --------
-cmdlib: $(
PRJDIR
)/libcmd.a
+cmdlib: $(
top_builddir
)/libcmd.a
-$(
PRJDIR
)/libcmd.a: $(OBJECTS)
+$(
top_builddir
)/libcmd.a: $(OBJECTS)
ar -rcu $*.a $(OBJECTS)
$(RANLIB) $*.a
ar -rcu $*.a $(OBJECTS)
$(RANLIB) $*.a
@@
-110,6
+123,7
@@
$(PRJDIR)/libcmd.a: $(OBJECTS)
# mv y.tab.c $*.cc
# mv y.tab.h $*.h
# mv y.tab.c $*.cc
# mv y.tab.h $*.h
+ifeq ($(DEVEL),yes)
.y.cc:
rm -f $*.cc $*.h
$(BISON_PLUS_PLUS) -d -o $*.cc $<
.y.cc:
rm -f $*.cc $*.h
$(BISON_PLUS_PLUS) -d -o $*.cc $<
@@
-117,13
+131,14
@@
$(PRJDIR)/libcmd.a: $(OBJECTS)
.l.cc:
rm -f $*.cc
$(LEX) --c++ -o $*.cc $<
.l.cc:
rm -f $*.cc
$(LEX) --c++ -o $*.cc $<
+endif
# Remaking configuration
# ----------------------
checkconf:
# Remaking configuration
# ----------------------
checkconf:
- @if [ -f $(
PRJDIR
)/devel ]; then\
- $(MAKE) -f conf.mk srcdir="$(srcdir)"
PRJDIR="$(PRJDIR
)" freshconf;\
+ @if [ -f $(
top_builddir
)/devel ]; then\
+ $(MAKE) -f conf.mk srcdir="$(srcdir)"
top_builddir="$(top_builddir
)" freshconf;\
fi
# End of cmd.src/Makefile.in
fi
# End of cmd.src/Makefile.in