4 # (c) Drotos Daniel, Talker Bt. 1997
18 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) \
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 = newcmd.o cmdutil.o cmdset.o syntax.o \
38 get.o set.o timer.o bp.o info.o
41 # Compiling entire program or any subproject
42 # ------------------------------------------
48 # Compiling and installing everything and runing test
49 # ---------------------------------------------------
50 install: all installdirs
53 # Deleting all the installed files
54 # --------------------------------
58 # Performing self-test
59 # --------------------
63 # Performing installation test
64 # ----------------------------
68 # Creating installation directories
69 # ---------------------------------
73 # Creating dependencies
74 # ---------------------
77 Makefile.dep: *.cc *.h
78 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
90 cmdlib: $(PRJDIR)/libcmd.a
92 $(PRJDIR)/libcmd.a: $(OBJECTS)
93 ar -rcu $*.a $(OBJECTS)
97 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
110 # Remaking configuration
111 # ----------------------
113 @if [ -f $(PRJDIR)/devel ]; then\
114 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
117 # End of mcs51/Makefile.in