4 # (c) Drotos Daniel, Talker Bt. 1997,99
18 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) -I$(PRJDIR)/cmd.src
20 CFLAGS = @CFLAGS@ -Wall
21 CXXFLAGS = @CXXFLAGS@ -Wall
25 exec_prefix = @exec_prefix@
29 includedir = @includedir@
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
36 OBJECTS = sim.o itsrc.o brk.o option.o arg.o stack.o \
40 # Compiling entire program or any subproject
41 # ------------------------------------------
42 all: checkconf sim_lib
47 # Compiling and installing everything and runing test
48 # ---------------------------------------------------
49 install: all installdirs
52 # Deleting all the installed files
53 # --------------------------------
57 # Performing self-test
58 # --------------------
62 # Performing installation test
63 # ----------------------------
67 # Creating installation directories
68 # ---------------------------------
72 # Creating dependencies
73 # ---------------------
76 Makefile.dep: *.cc *.h
77 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
89 sim_lib: $(PRJDIR)/libsim.a
91 $(PRJDIR)/libsim.a: $(OBJECTS)
92 ar -rcu $*.a $(OBJECTS)
96 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
109 # Remaking configuration
110 # ----------------------
112 @if [ -f $(PRJDIR)/devel ]; then\
113 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
116 # End of sim.src/Makefile