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 datarootdir = @datarootdir@
32 includedir = @includedir@
34 man1dir = $(mandir)/man1
35 man2dir = $(mandir)/man2
40 OBJECTS = main.o fileio.o frontend.o posix_signal.o
43 # Compiling entire program or any subproject
44 # ------------------------------------------
47 ifeq ($(curses_ok),yes)
48 serio.src: checkconf serialview$(EXEEXT)
54 # Compiling and installing everything and runing test
55 # ---------------------------------------------------
56 install: all installdirs
57 $(INSTALL) serialview$(EXEEXT) $(DESTDIR)$(bindir)/serialview$(EXEEXT)
58 $(STRIP) $(DESTDIR)$(bindir)/serialview$(EXEEXT)
61 # Deleting all the installed files
62 # --------------------------------
64 rm -f $(DESTDIR)$(bindir)/serialview$(EXEEXT)
67 # Performing self-test
68 # --------------------
74 # Performing installation test
75 # ----------------------------
79 # Creating installation directories
80 # ---------------------------------
82 test -d $(DESTDIR)$(bindir) || $(INSTALL) -d $(DESTDIR)$(bindir)
85 # Creating dependencies
86 # ---------------------
89 Makefile.dep: $(srcdir)/*.cc $(srcdir)/*.h $(srcdir)/*.hh
90 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >Makefile.dep
92 ifeq "$(findstring $(MAKECMDGOALS),uninstall installcheck installdirs checkconf \
93 clean distclean mostlyclean realclean)" ""
96 include $(srcdir)/clean.mk
101 serialview$(EXEEXT): $(OBJECTS)
102 $(CXX) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
105 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
107 # Remaking configuration
108 # ----------------------
110 @if [ -f $(top_builddir)/devel ]; then\
111 $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
114 # End of gui.src/serio.src/Makefile.in