6 VERSIONHI = @VERSIONHI@
7 VERSIONLO = @VERSIONLO@
19 exec_prefix = ${prefix}
20 bindir = ${exec_prefix}/bin
21 libdir = ${exec_prefix}/lib
23 includedir = ${prefix}/include
24 mandir = ${prefix}/man
25 man1dir = $(mandir)/man1
26 man2dir = $(mandir)/man2
27 infodir = ${prefix}/info
29 STD_INC = @sdcc_include_dir@
30 CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) -I$(PRJDIR)/support
39 OBJECTS = sdcdb.o symtab.o simi.o $(PRJDIR)/src/SDCCset.o \
40 break.o cmd.o $(PRJDIR)/src/SDCChasht.o \
41 $(PRJDIR)/src/SDCCerr.o
42 SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
44 TARGET = $(PRJDIR)/bin/sdcdb
47 # Compiling entire program or any subproject
48 # ------------------------------------------
49 all: checkconf $(TARGET)
51 # Compiling and installing everything and runing test
52 # ---------------------------------------------------
53 install: all installdirs
54 $(INSTALL) -s $(TARGET) $(bindir)/sdcdb
55 cp $(PRJDIR)/debugger/mcs51/sdcdb.el $(bindir)/sdcdb.el
56 cp $(PRJDIR)/debugger/mcs51/sdcdbsrc.el $(bindir)/sdcdbsrc.el
59 # Deleting all the installed files
60 # --------------------------------
65 # Performing self-test
66 # --------------------
70 # Performing installation test
71 # ----------------------------
75 # Creating installation directories
76 # ---------------------------------
78 $(INSTALL) -d $(bindir)
81 # Creating dependencies
82 # ---------------------
85 Makefile.dep: $(SOURCES) *.h $(PRJDIR)/*.h
86 $(CPP) $(CPPFLAGS) $(M_OR_MM) $(SOURCES) >Makefile.dep
94 $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBDIRS) $(LIBS)
97 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
100 # Remaking configuration
101 # ----------------------
103 @if [ -f $(PRJDIR)/devel ]; then\
104 $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\
107 # End of cpp/Makefile