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 command.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 # --------------------
66 # Performing installation test
67 # ----------------------------
71 # Creating installation directories
72 # ---------------------------------
76 # Creating dependencies
77 # ---------------------
80 Makefile.dep: *.cc *.h
81 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
93 cmdlib: $(PRJDIR)/libcmd.a
95 $(PRJDIR)/libcmd.a: $(OBJECTS)
96 ar -rcu $*.a $(OBJECTS)
100 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
113 # Remaking configuration
114 # ----------------------
116 @if [ -f $(PRJDIR)/devel ]; then\
117 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
120 # End of cmd.src/Makefile.in