projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* doc/sdccman.lyx, */Makefile, */Makefile.in:
[fw/sdcc]
/
sim
/
ucsim
/
main_in.mk
diff --git
a/sim/ucsim/main_in.mk
b/sim/ucsim/main_in.mk
index 99cfc2320bfb446df3df870eab3700b2d8eb66f7..3a77bac642c240f6f3ade5f5e4faa5f86fea765f 100644
(file)
--- a/
sim/ucsim/main_in.mk
+++ b/
sim/ucsim/main_in.mk
@@
-26,8
+26,10
@@
CFLAGS = @CFLAGS@ -I$(PRJDIR) -Wall
CXXFLAGS = @CXXFLAGS@ -I$(PRJDIR) -Wall
M_OR_MM = @M_OR_MM@
CXXFLAGS = @CXXFLAGS@ -I$(PRJDIR) -Wall
M_OR_MM = @M_OR_MM@
-LIB_LIST = util sim cmd sim
-UCSIM_LIBS = $(patsubst %,-l%,$(LIB_LIST))
+EXEEXT = @EXEEXT@
+
+LIB_LIST = util cmd sim
+UCSIM_LIBS = -Wl,--start-group $(patsubst %,-l%,$(LIB_LIST)) -Wl,--end-group
UCSIM_LIB_FILES = $(patsubst %,lib%.a,$(LIB_LIST))
prefix = @prefix@
UCSIM_LIB_FILES = $(patsubst %,lib%.a,$(LIB_LIST))
prefix = @prefix@
@@
-67,10
+69,10
@@
install: all installdirs
# Deleting all the installed files
# --------------------------------
uninstall:
# Deleting all the installed files
# --------------------------------
uninstall:
- rm -f $(
bindir)/s51
- rm -f $(
bindir)/savr
- rm -f $(
bindir)/serialview
- rm -f $(
bindir)/portmon
+ rm -f $(
DESTDIR)$(bindir)/s51$(EXEEXT)
+ rm -f $(
DESTDIR)$(bindir)/savr$(EXEEXT)
+ rm -f $(
DESTDIR)$(bindir)/serialview$(EXEEXT)
+ rm -f $(
DESTDIR)$(bindir)/portmon$(EXEEXT)
# Performing self-test
# Performing self-test
@@
-120,19
+122,11
@@
ucsim: $(UCSIM_OBJECTS) $(UCSIM_LIB_FILES)
echo $(UCSIM_LIB_FILES)
$(CXX) $(CXXFLAGS) -o $@ $< -L$(PRJDIR) $(UCSIM_LIBS)
echo $(UCSIM_LIB_FILES)
$(CXX) $(CXXFLAGS) -o $@ $< -L$(PRJDIR) $(UCSIM_LIBS)
+ptt: ptt.o
+ $(CXX) $(CXXFLAGS) -o $@ $< -lpthread
.cc.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
.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
-
-.l.cc:
- rm -f $*.cc
- $(LEX) -t $< >$*.cc
-
# Remaking configuration
# ----------------------
# Remaking configuration
# ----------------------