1 # Makefile for kano-networks talker
10 top_builddir = @top_builddir@
11 top_srcdir = @top_srcdir@
13 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
14 CPPFLAGS = @CPPFLAGS@ -I. -I$(top_builddir)
15 # -I$(top_builddir)cmd.src -I$(top_builddir)sim.src
16 CFLAGS = @CFLAGS@ -Wall
17 CXXFLAGS = @CXXFLAGS@ -Wall
20 LIBS = @CURSES_LIBS@ @LIBS@
24 curses_ok = @curses_ok@
27 exec_prefix = @exec_prefix@
31 includedir = @includedir@
33 man1dir = $(mandir)/man1
34 man2dir = $(mandir)/man2
39 OBJECTS = main.o fileio.o frontend.o posix_signal.o
42 # Compiling entire program or any subproject
43 # ------------------------------------------
46 ifeq ($(curses_ok),yes)
47 serio.src: checkconf serialview$(EXEEXT)
53 # Compiling and installing everything and runing test
54 # ---------------------------------------------------
55 install: all installdirs
56 $(INSTALL) serialview$(EXEEXT) $(DESTDIR)$(bindir)/serialview$(EXEEXT)
57 $(STRIP) $(DESTDIR)$(bindir)/serialview$(EXEEXT)
60 # Deleting all the installed files
61 # --------------------------------
63 rm -f $(DESTDIR)$(bindir)/serialview$(EXEEXT)
66 # Performing self-test
67 # --------------------
73 # Performing installation test
74 # ----------------------------
78 # Creating installation directories
79 # ---------------------------------
81 test -d $(DESTDIR)$(bindir) || $(INSTALL) -d $(DESTDIR)$(bindir)
84 # Creating dependencies
85 # ---------------------
88 Makefile.dep: $(srcdir)/*.cc $(srcdir)/*.h $(srcdir)/*.hh
89 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >Makefile.dep
91 ifeq "$(findstring $(MAKECMDGOALS),uninstall installcheck installdirs checkconf \
92 clean distclean mostlyclean realclean)" ""
95 include $(srcdir)/clean.mk
100 serialview$(EXEEXT): $(OBJECTS)
101 $(CXX) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
104 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
106 # Remaking configuration
107 # ----------------------
109 @if [ -f $(top_builddir)devel ]; then\
110 $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
113 # End of gui.src/serio.src/Makefile.in