2 # ucsim cmd.src/Makefile
4 # (c) Drotos Daniel, Talker Bt. 1997
18 BISON_PLUS_PLUS = @BISON_PLUS_PLUS@
20 top_builddir = @top_builddir@
21 top_srcdir = @top_srcdir@
23 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
24 CPPFLAGS = @CPPFLAGS@ -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) \
25 -I$(top_srcdir)/sim.src -I$(top_srcdir)/gui.src
26 CFLAGS = @CFLAGS@ -Wall
27 CXXFLAGS = @CXXFLAGS@ -Wall
31 exec_prefix = @exec_prefix@
35 includedir = @includedir@
37 man1dir = $(mandir)/man1
38 man2dir = $(mandir)/man2
43 OBJECTS = cmdset.o command.o newcmd.o cmdutil.o syntax.o \
44 get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
45 cmduc.o cmdstat.o cmdmem.o \
48 DEVEL = $(shell ( bash -c "test -e $(top_builddir)devel && echo yes" ))
50 # Compiling entire program or any subproject
51 # ------------------------------------------
57 # Compiling and installing everything and runing test
58 # ---------------------------------------------------
59 install: all installdirs
62 # Deleting all the installed files
63 # --------------------------------
67 # Performing self-test
68 # --------------------
74 # Performing installation test
75 # ----------------------------
79 # Creating installation directories
80 # ---------------------------------
84 # Creating dependencies
85 # ---------------------
88 Makefile.dep: $(srcdir)/*.cc $(srcdir)/*.h
89 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >Makefile.dep
92 include $(srcdir)/clean.mk
97 cmdlex.cc: cmdlex.l cmdpars.h
103 cmdlib: $(top_builddir)libcmd.a
105 $(top_builddir)libcmd.a: $(OBJECTS)
106 ar -rcu $*.a $(OBJECTS)
110 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
121 $(BISON_PLUS_PLUS) -d -o $*.cc $<
125 $(LEX) --c++ -o $*.cc $<
129 # Remaking configuration
130 # ----------------------
132 @if [ -f $(top_builddir)devel ]; then\
133 $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
136 # End of cmd.src/Makefile.in