4 # (c) Drotos Daniel, Talker Bt. 1997,99
16 top_builddir = @top_builddir@
17 top_srcdir = @top_srcdir@
19 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
20 CPPFLAGS = @CPPFLAGS@ -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) \
21 -I$(top_srcdir)/cmd.src -I$(top_srcdir)/gui.src
22 CFLAGS = @CFLAGS@ -Wall
23 CXXFLAGS = @CXXFLAGS@ -Wall
27 exec_prefix = @exec_prefix@
31 datarootdir = @datarootdir@
32 includedir = @includedir@
34 man1dir = $(mandir)/man1
35 man2dir = $(mandir)/man2
40 OBJECTS = stack.o mem.o sim.o itsrc.o brk.o arg.o \
44 # Compiling entire program or any subproject
45 # ------------------------------------------
46 all: checkconf sim_lib
48 test_mem_speed: $(top_builddir)/lib*.a test_mem_speed.o
49 $(CXX) -o $@ test_mem_speed.o -L$(top_builddir) -Wl,--start-group -lsim -lutil -lcmd -Wl,--end-group
54 # Compiling and installing everything and runing test
55 # ---------------------------------------------------
56 install: all installdirs
59 # Deleting all the installed files
60 # --------------------------------
64 # Performing self-test
65 # --------------------
71 # Performing installation test
72 # ----------------------------
76 # Creating installation directories
77 # ---------------------------------
81 # Creating dependencies
82 # ---------------------
85 Makefile.dep: $(srcdir)/*.cc $(srcdir)/*.h
86 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >Makefile.dep
89 include $(srcdir)/clean.mk
98 sim_lib: $(top_builddir)/libsim.a
100 $(top_builddir)/libsim.a: $(OBJECTS)
101 ar -rcu $*.a $(OBJECTS)
105 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
118 # Remaking configuration
119 # ----------------------
121 @if [ -f $(top_builddir)/devel ]; then\
122 $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
125 # End of sim.src/Makefile