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 includedir = @includedir@
33 man1dir = $(mandir)/man1
34 man2dir = $(mandir)/man2
39 OBJECTS = stack.o mem.o sim.o itsrc.o brk.o arg.o \
43 # Compiling entire program or any subproject
44 # ------------------------------------------
45 all: checkconf sim_lib
47 test_mem_speed: $(top_builddir)lib*.a test_mem_speed.o
48 $(CXX) -o $@ test_mem_speed.o -L$(top_builddir) -Wl,--start-group -lsim -lutil -lcmd -Wl,--end-group
53 # Compiling and installing everything and runing test
54 # ---------------------------------------------------
55 install: all installdirs
58 # Deleting all the installed files
59 # --------------------------------
63 # Performing self-test
64 # --------------------
70 # Performing installation test
71 # ----------------------------
75 # Creating installation directories
76 # ---------------------------------
80 # Creating dependencies
81 # ---------------------
84 Makefile.dep: $(srcdir)/*.cc $(srcdir)/*.h
85 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $^ >Makefile.dep
88 include $(srcdir)/clean.mk
97 sim_lib: $(top_builddir)libsim.a
99 $(top_builddir)libsim.a: $(OBJECTS)
100 ar -rcu $*.a $(OBJECTS)
104 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
117 # Remaking configuration
118 # ----------------------
120 @if [ -f $(top_builddir)devel ]; then\
121 $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
124 # End of sim.src/Makefile