1 # Makefile for kano-networks talker
12 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
13 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR)
14 # -I$(PRJDIR)/cmd.src -I$(PRJDIR)/sim.src
15 CFLAGS = @CFLAGS@ -Wall
16 CXXFLAGS = @CXXFLAGS@ -Wall
19 LIBS = @CURSES_LIBS@ @LIBS@
23 curses_ok = @curses_ok@
26 exec_prefix = @exec_prefix@
30 includedir = @includedir@
32 man1dir = $(mandir)/man1
33 man2dir = $(mandir)/man2
37 OBJECTS = main.o fileio.o frontend.o posix_signal.o
40 # Compiling entire program or any subproject
41 # ------------------------------------------
44 ifeq ($(curses_ok),yes)
45 serio.src: checkconf serialview$(EXEEXT)
51 # Compiling and installing everything and runing test
52 # ---------------------------------------------------
53 install: all installdirs
54 $(INSTALL) serialview$(EXEEXT) $(DESTDIR)$(bindir)/serialview$(EXEEXT)
55 $(STRIP) $(DESTDIR)$(bindir)/serialview$(EXEEXT)
58 # Deleting all the installed files
59 # --------------------------------
61 rm -f $(DESTDIR)$(bindir)/serialview$(EXEEXT)
64 # Performing self-test
65 # --------------------
71 # Performing installation test
72 # ----------------------------
76 # Creating installation directories
77 # ---------------------------------
79 test -d $(DESTDIR)$(bindir) || $(INSTALL) -d $(DESTDIR)$(bindir)
82 # Creating dependencies
83 # ---------------------
86 Makefile.dep: *.cc *.h *.hh
87 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
95 serialview$(EXEEXT): $(OBJECTS)
96 $(CXX) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
99 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
101 # Remaking configuration
102 # ----------------------
104 @if [ -f $(PRJDIR)/devel ]; then\
105 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
108 # End of gui.src/serio.src/Makefile.in