2 # ucsim cmd.src/Makefile
4 # (c) Drotos Daniel, Talker Bt. 1997
18 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) \
20 -I$(PRJDIR)/sim.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 = cmdset.o newcmd.o cmdutil.o syntax.o \
38 get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
42 # Compiling entire program or any subproject
43 # ------------------------------------------
49 # Compiling and installing everything and runing test
50 # ---------------------------------------------------
51 install: all installdirs
54 # Deleting all the installed files
55 # --------------------------------
59 # Performing self-test
60 # --------------------
64 # Performing installation test
65 # ----------------------------
69 # Creating installation directories
70 # ---------------------------------
74 # Creating dependencies
75 # ---------------------
78 Makefile.dep: *.cc *.h
79 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
91 cmdlib: $(PRJDIR)/libcmd.a
93 $(PRJDIR)/libcmd.a: $(OBJECTS)
94 ar -rcu $*.a $(OBJECTS)
98 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
111 # Remaking configuration
112 # ----------------------
114 @if [ -f $(PRJDIR)/devel ]; then\
115 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
118 # End of cmd.src/Makefile.in