44363c8ed3be4667211af87224c3fe36680634ce
[fw/sdcc] / sim / ucsim / gui.src / serio.src / Makefile.in
1 # Makefile for kano-networks talker
2
3 SHELL           = /bin/sh
4 CXX             = @CXX@
5 CXXCPP          = @CXXCPP@
6 INSTALL         = @INSTALL@
7 STRIP           = @STRIP@
8 CP              = /bin/cp
9
10 PRJDIR          = ../..
11
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
17 M_OR_MM         = @M_OR_MM@
18
19 LIBS            = @CURSES_LIBS@ @LIBS@
20
21 EXEEXT          = @EXEEXT@
22
23 curses_ok       = @curses_ok@
24
25 prefix          = @prefix@
26 exec_prefix     = @exec_prefix@
27 bindir          = @bindir@
28 libdir          = @libdir@
29 datadir         = @datadir@
30 includedir      = @includedir@
31 mandir          = @mandir@
32 man1dir         = $(mandir)/man1
33 man2dir         = $(mandir)/man2
34 infodir         = @infodir@
35 srcdir          = @srcdir@
36
37 OBJECTS         = main.o fileio.o frontend.o posix_signal.o
38
39
40 # Compiling entire program or any subproject
41 # ------------------------------------------
42 all: serio.src
43
44 ifeq ($(curses_ok),yes)
45 serio.src: checkconf serialview$(EXEEXT)
46 else
47 serio.src: checkconf
48 endif
49
50
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)
56
57
58 # Deleting all the installed files
59 # --------------------------------
60 uninstall:
61         rm -f $(DESTDIR)$(bindir)/serialview$(EXEEXT)
62
63
64 # Performing self-test
65 # --------------------
66 check:
67
68 test:
69
70
71 # Performing installation test
72 # ----------------------------
73 installcheck:
74
75
76 # Creating installation directories
77 # ---------------------------------
78 installdirs:
79         test -d $(DESTDIR)$(bindir) || $(INSTALL) -d $(DESTDIR)$(bindir)
80
81
82 # Creating dependencies
83 # ---------------------
84 dep: Makefile.dep
85
86 Makefile.dep: *.cc *.h *.hh
87         $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
88
89 include Makefile.dep
90 include clean.mk
91
92
93 # My rules
94 # --------
95 serialview$(EXEEXT): $(OBJECTS)
96         $(CXX) -o $@ $(LDFLAGS) $(OBJECTS) $(LIBS)
97
98 .cc.o:
99         $(CXX) $(CXXFLAGS)  $(CPPFLAGS) -c $< -o $@
100
101 # Remaking configuration
102 # ----------------------
103 checkconf:
104         @if [ -f $(PRJDIR)/devel ]; then\
105           $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
106         fi
107
108 # End of gui.src/serio.src/Makefile.in