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 \
46 DEVEL = $(shell ( bash -c "test -e $(PRJDIR)/devel && echo yes" ))
48 # Compiling entire program or any subproject
49 # ------------------------------------------
55 # Compiling and installing everything and runing test
56 # ---------------------------------------------------
57 install: all installdirs
60 # Deleting all the installed files
61 # --------------------------------
65 # Performing self-test
66 # --------------------
72 # Performing installation test
73 # ----------------------------
77 # Creating installation directories
78 # ---------------------------------
82 # Creating dependencies
83 # ---------------------
86 Makefile.dep: *.cc *.h
87 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
95 cmdlex.cc: cmdlex.l cmdpars.h
101 cmdlib: $(PRJDIR)/libcmd.a
103 $(PRJDIR)/libcmd.a: $(OBJECTS)
104 ar -rcu $*.a $(OBJECTS)
108 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
119 $(BISON_PLUS_PLUS) -d -o $*.cc $<
123 $(LEX) --c++ -o $*.cc $<
127 # Remaking configuration
128 # ----------------------
130 @if [ -f $(PRJDIR)/devel ]; then\
131 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
134 # End of cmd.src/Makefile.in