4 # (c) Drotos Daniel, Talker Bt. 1997,99
18 DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
19 # FIXME: -Imcs51 must be removed!!!
20 CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR)
21 CFLAGS = @CFLAGS@ -I$(PRJDIR) -Wall
22 CXXFLAGS = @CXXFLAGS@ -I$(PRJDIR) -Wall
26 exec_prefix = @exec_prefix@
30 includedir = @includedir@
32 man1dir = $(mandir)/man1
33 man2dir = $(mandir)/man2
37 OBJECTS = pobj.o globals.o utils.o
40 # Compiling entire program or any subproject
41 # ------------------------------------------
46 # Compiling and installing everything and runing test
47 # ---------------------------------------------------
48 install: all installdirs
51 # Deleting all the installed files
52 # --------------------------------
56 rm -f $(bindir)/serialview
57 rm -f $(bindir)/portmon
60 # Performing self-test
61 # --------------------
65 # Performing installation test
66 # ----------------------------
70 # Creating installation directories
71 # ---------------------------------
75 # Creating dependencies
76 # ---------------------
80 $(CXXCPP) $(CPPFLAGS) $(M_OR_MM) *.cc >main.dep
93 ar -rcu $*.a $(OBJECTS)
97 $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
110 # Remaking configuration
111 # ----------------------
113 @if [ -f devel ]; then\
114 $(MAKE) -f conf.mk srcdir="$(srcdir)" freshconf;\
117 # End of main_in.mk/main.mk