4 # (c) Drotos Daniel, Talker Bt. 1997,99
18 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) \
20 -I$(PRJDIR)/cmd.src -I$(PRJDIR)/gui.src
21 CFLAGS = @CFLAGS@ -Wall
22 CXXFLAGS = @CXXFLAGS@ -Wall
26 exec_prefix = @exec_prefix@
30 includedir = @includedir@
32 man1dir = $(mandir)/man1
33 man2dir = $(mandir)/man2
37 OBJECTS = mem.o app.o sim.o itsrc.o brk.o option.o arg.o stack.o \
41 # Compiling entire program or any subproject
42 # ------------------------------------------
43 all: checkconf sim_lib
45 test_mem_speed: $(PRJDIR)/lib*.a test_mem_speed.o
46 $(CC) -o $@ test_mem_speed.o -L$(PRJDIR) -lsim -lutil -lcmd -lsim
51 # Compiling and installing everything and runing test
52 # ---------------------------------------------------
53 install: all installdirs
56 # Deleting all the installed files
57 # --------------------------------
61 # Performing self-test
62 # --------------------
68 # Performing installation test
69 # ----------------------------
73 # Creating installation directories
74 # ---------------------------------
78 # Creating dependencies
79 # ---------------------
82 Makefile.dep: *.cc *.h
83 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
95 sim_lib: $(PRJDIR)/libsim.a
97 $(PRJDIR)/libsim.a: $(OBJECTS)
98 ar -rcu $*.a $(OBJECTS)
102 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
115 # Remaking configuration
116 # ----------------------
118 @if [ -f $(PRJDIR)/devel ]; then\
119 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
122 # End of sim.src/Makefile