2 # uCsim gui.src/portmon.src/Makefile
4 # (c) Drotos Daniel, Talker Bt. 1999
17 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
18 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) -I$(PKGDIR)
19 CFLAGS = @CFLAGS@ -Wall
20 CXXFLAGS = @CXXFLAGS@ -Wall
23 LIBS = -L$(PRJDIR) -L$(PKGDIR) -lgui -lutil @LIBS@
25 curses_ok = @curses_ok@
28 exec_prefix = @exec_prefix@
32 includedir = @includedir@
34 man1dir = $(mandir)/man1
35 man2dir = $(mandir)/man2
43 # Compiling entire program or any subproject
44 # ------------------------------------------
45 all: checkconf otherlibs portmon.src
48 # Compiling and installing everything and runing test
49 # ---------------------------------------------------
50 install: all installdirs
51 $(INSTALL) -s portmon $(bindir)
54 # Deleting all the installed files
55 # --------------------------------
57 rm -f $(bindir)/portmon
60 # Performing self-test
61 # --------------------
65 # Performing installation test
66 # ----------------------------
70 # Creating installation directories
71 # ---------------------------------
73 test -d $(bindir) || $(INSTALL) -d $(bindir)
76 # Creating dependencies
77 # ---------------------
80 Makefile.dep: *.cc *.h $(PRJDIR)/*.h $(PKGDIR)/*.h
81 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >Makefile.dep
92 ifeq ($(curses_ok),yes)
98 portmon: $(OBJECTS) $(PRJDIR)/*.a $(PKGDIR)/*.a
99 $(CXX) $(CXXFLAGS) -o portmon $(OBJECTS) $(LIBS)
101 ifeq ($(curses_ok),yes)
103 cd $(PRJDIR) && $(MAKE) libs
104 cd $(PKGDIR) && $(MAKE) libs
110 $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
123 # Remaking configuration
124 # ----------------------
126 @if [ -f $(PRJDIR)/devel ]; then\
127 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
130 # End of gui.src/portmon.src/Makefile.in