eb5b6151207f2ad3cdc08a25f75d09f9c18bc9c5
[fw/sdcc] / sim / ucsim / gui.src / obsolete / portmon.src / Makefile.in
1 #
2 # uCsim gui.src/portmon.src/Makefile
3 #
4 # (c) Drotos Daniel, Talker Bt. 1999
5 #
6
7 SHELL           = /bin/sh
8 CXX             = @CXX@
9 CPP             = @CPP@
10 CXXCPP          = @CXXCPP@
11 RANLIB          = @RANLIB@
12 INSTALL         = @INSTALL@
13
14 top_builddir    = @top_builddir@
15 top_srcdir      = @top_srcdir@
16 PKGDIR          = ../
17
18 DEFS            = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 CPPFLAGS        = @CPPFLAGS@ -I. -I$(top_builddir) -I$(PKGDIR)
20 CFLAGS          = @CFLAGS@ -Wall
21 CXXFLAGS        = @CXXFLAGS@ -Wall
22 M_OR_MM         = @M_OR_MM@
23
24 LIBS            = -L$(top_builddir) -L$(PKGDIR) -lgui @CURSES_LIBS@ -lutil @LIBS@
25
26 curses_ok       = @curses_ok@
27
28 prefix          = @prefix@
29 exec_prefix     = @exec_prefix@
30 bindir          = @bindir@
31 libdir          = @libdir@
32 datadir         = @datadir@
33 includedir      = @includedir@
34 mandir          = @mandir@
35 man1dir         = $(mandir)/man1
36 man2dir         = $(mandir)/man2
37 infodir         = @infodir@
38 srcdir          = @srcdir@
39
40 OBJECTS         = portmon.o \
41                   pmapp.o port.o
42
43
44 # Compiling entire program or any subproject
45 # ------------------------------------------
46 all: checkconf otherlibs portmon.src
47
48
49 # Compiling and installing everything and runing test
50 # ---------------------------------------------------
51 install: all installdirs
52         $(INSTALL) -s portmon $(bindir)
53
54
55 # Deleting all the installed files
56 # --------------------------------
57 uninstall:
58         rm -f $(bindir)/portmon
59
60
61 # Performing self-test
62 # --------------------
63 check:
64
65
66 # Performing installation test
67 # ----------------------------
68 installcheck:
69
70
71 # Creating installation directories
72 # ---------------------------------
73 installdirs:
74         test -d $(bindir) || $(INSTALL) -d $(bindir)
75
76
77 # Creating dependencies
78 # ---------------------
79 dep: Makefile.dep
80
81 Makefile.dep: $(srcdir)/*.cc $(top_builddir)*.h $(PKGDIR)/*.h
82         $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >Makefile.dep
83
84 include Makefile.dep
85 include clean.mk
86
87 #parser.cc: parser.y
88
89 #plex.cc: plex.l
90
91 # My rules
92 # --------
93 ifeq ($(curses_ok),yes)
94 portmon.src: portmon
95 else
96 portmon.src:
97 endif
98
99 portmon: $(OBJECTS) $(top_builddir)*.a $(PKGDIR)/*.a
100         $(CXX) $(CXXFLAGS) -o portmon $(OBJECTS) $(LIBS)
101
102 ifeq ($(curses_ok),yes)
103 otherlibs:
104         $(MAKE) -C $(top_builddir) libs
105         $(MAKE) -C $(PKGDIR) libs
106 else
107 otherlibs:
108 endif
109
110 .cc.o:
111         $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
112
113 .y.cc:
114         rm -f $*.cc $*.h
115         $(YACC) -d $<
116         mv y.tab.c $*.cc
117         mv y.tab.h $*.h
118
119 .l.cc:
120         rm -f $*.cc
121         $(LEX) -t $< >$*.cc
122
123
124 # Remaking configuration
125 # ----------------------
126 checkconf:
127         @if [ -f $(top_builddir)devel ]; then\
128           $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
129         fi
130
131 # End of gui.src/portmon.src/Makefile.in