2 # ucsim cmd.src/Makefile
4 # (c) Drotos Daniel, Talker Bt. 1997
18 BISON_PLUS_PLUS = @BISON_PLUS_PLUS@
22 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
23 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) \
24 -I$(PRJDIR)/sim.src -I$(PRJDIR)/gui.src
25 CFLAGS = @CFLAGS@ -Wall
26 CXXFLAGS = @CXXFLAGS@ -Wall
30 exec_prefix = @exec_prefix@
34 includedir = @includedir@
36 man1dir = $(mandir)/man1
37 man2dir = $(mandir)/man2
41 OBJECTS = cmdset.o command.o newcmd.o cmdutil.o syntax.o \
42 get.o set.o timer.o bp.o info.o show.o cmdgui.o cmdconf.o \
43 cmduc.o cmdstat.o cmdmem.o \
47 # Compiling entire program or any subproject
48 # ------------------------------------------
54 # Compiling and installing everything and runing test
55 # ---------------------------------------------------
56 install: all installdirs
59 # Deleting all the installed files
60 # --------------------------------
64 # Performing self-test
65 # --------------------
71 # Performing installation test
72 # ----------------------------
76 # Creating installation directories
77 # ---------------------------------
81 # Creating dependencies
82 # ---------------------
85 Makefile.dep: *.cc *.h
86 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
93 cmdlex.cc: cmdlex.l cmdpars.h
98 cmdlib: $(PRJDIR)/libcmd.a
100 $(PRJDIR)/libcmd.a: $(OBJECTS)
101 ar -rcu $*.a $(OBJECTS)
105 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
115 $(BISON_PLUS_PLUS) -d -o $*.cc $<
119 $(LEX) --c++ -o $*.cc $<
122 # Remaking configuration
123 # ----------------------
125 @if [ -f $(PRJDIR)/devel ]; then\
126 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
129 # End of cmd.src/Makefile.in