2 # uCsim gui.src/portmon.src/Makefile
4 # (c) Drotos Daniel, Talker Bt. 1999
14 top_builddir = @top_builddir@
15 top_srcdir = @top_srcdir@
18 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 CPPFLAGS = @CPPFLAGS@ -I. -I$(top_builddir) -I$(PKGDIR)
20 CFLAGS = @CFLAGS@ -Wall
21 CXXFLAGS = @CXXFLAGS@ -Wall
24 LIBS = -L$(top_builddir) -L$(PKGDIR) -lgui @CURSES_LIBS@ -lutil @LIBS@
26 curses_ok = @curses_ok@
29 exec_prefix = @exec_prefix@
33 includedir = @includedir@
35 man1dir = $(mandir)/man1
36 man2dir = $(mandir)/man2
44 # Compiling entire program or any subproject
45 # ------------------------------------------
46 all: checkconf otherlibs portmon.src
49 # Compiling and installing everything and runing test
50 # ---------------------------------------------------
51 install: all installdirs
52 $(INSTALL) -s portmon $(bindir)
55 # Deleting all the installed files
56 # --------------------------------
58 rm -f $(bindir)/portmon
61 # Performing self-test
62 # --------------------
66 # Performing installation test
67 # ----------------------------
71 # Creating installation directories
72 # ---------------------------------
74 test -d $(bindir) || $(INSTALL) -d $(bindir)
77 # Creating dependencies
78 # ---------------------
81 Makefile.dep: $(srcdir)/*.cc $(top_builddir)/*.h $(PKGDIR)/*.h
82 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.cc,$^) >Makefile.dep
93 ifeq ($(curses_ok),yes)
99 portmon: $(OBJECTS) $(top_builddir)/*.a $(PKGDIR)/*.a
100 $(CXX) $(CXXFLAGS) -o portmon $(OBJECTS) $(LIBS)
102 ifeq ($(curses_ok),yes)
104 $(MAKE) -C $(top_builddir) libs
105 $(MAKE) -C $(PKGDIR) libs
111 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
124 # Remaking configuration
125 # ----------------------
127 @if [ -f $(top_builddir)/devel ]; then\
128 $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\
131 # End of gui.src/portmon.src/Makefile.in