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 = app.o sim.o itsrc.o brk.o option.o arg.o stack.o \
38 guiobj.o uc.o hw.o mem.o
41 # Compiling entire program or any subproject
42 # ------------------------------------------
43 all: checkconf sim_lib
48 # Compiling and installing everything and runing test
49 # ---------------------------------------------------
50 install: all installdirs
53 # Deleting all the installed files
54 # --------------------------------
58 # Performing self-test
59 # --------------------
63 # Performing installation test
64 # ----------------------------
68 # Creating installation directories
69 # ---------------------------------
73 # Creating dependencies
74 # ---------------------
77 Makefile.dep: *.cc *.h
78 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
90 sim_lib: $(PRJDIR)/libsim.a
92 $(PRJDIR)/libsim.a: $(OBJECTS)
93 ar -rcu $*.a $(OBJECTS)
97 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
110 # Remaking configuration
111 # ----------------------
113 @if [ -f $(PRJDIR)/devel ]; then\
114 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
117 # End of sim.src/Makefile