1 # Makefile for kano-networks talker
11 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
12 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR)
13 # -I$(PRJDIR)/cmd.src -I$(PRJDIR)/sim.src
14 CFLAGS = @CFLAGS@ -Wall
15 CXXFLAGS = @CXXFLAGS@ -Wall
18 LIBS = @CURSES_LIBS@ @LIBS@
22 curses_ok = @curses_ok@
25 exec_prefix = @exec_prefix@
29 includedir = @includedir@
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
36 OBJECTS = main.o fileio.o frontend.o posix_signal.o
39 # Compiling entire program or any subproject
40 # ------------------------------------------
43 ifeq ($(curses_ok),yes)
44 serio.src: checkconf serialview$(EXEEXT)
50 # Compiling and installing everything and runing test
51 # ---------------------------------------------------
52 install: all installdirs
53 $(INSTALL) -s serialview$(EXEEXT) $(bindir)
56 # Deleting all the installed files
57 # --------------------------------
59 rm -f $(bindir)/serialview$(EXEEXT)
62 # Performing self-test
63 # --------------------
69 # Performing installation test
70 # ----------------------------
74 # Creating installation directories
75 # ---------------------------------
77 test -d $(bindir) || $(INSTALL) -d $(bindir)
80 # Creating dependencies
81 # ---------------------
84 Makefile.dep: *.cc *.h *.hh
85 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
93 serialview$(EXEEXT): $(OBJECTS)
94 $(CXX) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
97 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
99 # Remaking configuration
100 # ----------------------
102 @if [ -f $(PRJDIR)/devel ]; then\
103 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
106 # End of gui.src/serio.src/Makefile.in