X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debugger%2Fmcs51%2FMakefile.in;h=ebba94b0ff5dd77eb8b2f7dc78e78b00f84a2c4e;hb=d08e6df2202ed3f19b681221b502dedb3c6c8a28;hp=33f9fb5a42ccd9a024dc8a0e824add983f151ff5;hpb=f4f097b91aab55fb5fe55566e870dd201bafee19;p=fw%2Fsdcc diff --git a/debugger/mcs51/Makefile.in b/debugger/mcs51/Makefile.in index 33f9fb5a..ebba94b0 100644 --- a/debugger/mcs51/Makefile.in +++ b/debugger/mcs51/Makefile.in @@ -2,48 +2,46 @@ # # -VERSION = @VERSION@ -VERSIONHI = @VERSIONHI@ -VERSIONLO = @VERSIONLO@ -VERSIONP = @VERSIONP@ - SHELL = /bin/sh CC = @CC@ CPP = @CPP@ INSTALL = @INSTALL@ +STRIP = @STRIP@ + -PRJDIR = ../.. -SLIB = $(PRJDIR)/support/Util +top_builddir = ../../ +top_srcdir = @srcdir@/../.. +SLIB = $(top_srcdir)/support/Util +SDCCLIB = $(top_srcdir)/src +VPATH = @srcdir@ srcdir = @srcdir@ + prefix = @prefix@ -exec_prefix = ${prefix} -bindir = ${exec_prefix}/bin -libdir = ${exec_prefix}/lib -datadir = @datadir@ -includedir = ${prefix}/include -mandir = ${prefix}/man -man1dir = $(mandir)/man1 -man2dir = $(mandir)/man2 -infodir = ${prefix}/info +exec_prefix = @exec_prefix@ +bindir = @bindir@ STD_INC = @sdcc_include_dir@ -CPPFLAGS = @CPPFLAGS@ -I. -I$(PRJDIR) -I$(PRJDIR)/support -I$(SLIB) +CPPFLAGS = @CPPFLAGS@ -I. -I$(top_builddir) -I$(top_srcdir) -I$(SLIB) -DHAVE_CONFIG_H CFLAGS = @CFLAGS@ M_OR_MM = @M_OR_MM@ LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ +EXEEXT = @EXEEXT@ + +LIBS = @LIBS@ @LIBREADLINE@ LIBDIRS = -SLIBOBJS = NewAlloc.o +OBJECTS = sdcdb.o symtab.o simi.o \ + break.o cmd.o +SLIBOBJS = NewAlloc.o +SDCCOBJS = SDCCset.o SDCChasht.o SDCCerr.o -OBJECTS = sdcdb.o symtab.o simi.o $(PRJDIR)/src/SDCCset.o \ - break.o cmd.o $(PRJDIR)/src/SDCChasht.o \ - $(PRJDIR)/support/Util/SDCCerr.o SOURCES = $(patsubst %.o,%.c,$(OBJECTS)) +SLIBSOURCES = $(patsubst %.o,$(SLIB)/%.c,$(SLIBOBJS)) +SDCCSOURCES = $(patsubst %.o,$(SDCCLIB)/%.c,$(SDCCOBJS)) -TARGET = $(PRJDIR)/bin/sdcdb +TARGET = $(top_builddir)/bin/sdcdb$(EXEEXT) # Compiling entire program or any subproject @@ -53,18 +51,18 @@ all: checkconf $(TARGET) # Compiling and installing everything and runing test # --------------------------------------------------- install: all installdirs - $(INSTALL) -s $(TARGET) $(bindir)/sdcdb - cp $(PRJDIR)/debugger/mcs51/sdcdb.el $(bindir)/sdcdb.el - cp $(PRJDIR)/debugger/mcs51/sdcdbsrc.el $(bindir)/sdcdbsrc.el + $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)/sdcdb$(EXEEXT) + $(STRIP) $(DESTDIR)$(bindir)/sdcdb$(EXEEXT) + cp $(srcdir)/sdcdb.el $(DESTDIR)$(bindir)/sdcdb.el + cp $(srcdir)/sdcdbsrc.el $(DESTDIR)$(bindir)/sdcdbsrc.el # Deleting all the installed files # -------------------------------- uninstall: - rm -f $(bindir)/sdcdb - rm -f $(bindir)/sdcdb.el - rm -f $(bindir)/sdcdbsrc.el - + rm -f $(DESTDIR)$(bindir)/sdcdb$(EXEEXT) + rm -f $(DESTDIR)$(bindir)/sdcdb.el + rm -f $(DESTDIR)$(bindir)/sdcdbsrc.el # Performing self-test # -------------------- @@ -79,23 +77,26 @@ installcheck: # Creating installation directories # --------------------------------- installdirs: - $(INSTALL) -d $(bindir) + $(INSTALL) -d $(DESTDIR)$(bindir) # Creating dependencies # --------------------- dep: Makefile.dep -Makefile.dep: $(SOURCES) *.h $(PRJDIR)/*.h - $(CPP) $(CPPFLAGS) $(M_OR_MM) $(SOURCES) >Makefile.dep +Makefile.dep: $(SOURCES) $(SLIBSOURCES) $(SDCCSOURCES) $(srcdir)/*.h $(top_builddir)/*.h $(top_srcdir)/*.h + $(CPP) $(CPPFLAGS) $(M_OR_MM) $(filter %.c,$^) >Makefile.dep -include Makefile.dep -include clean.mk +ifeq "$(findstring $(MAKECMDGOALS),uninstall installcheck installdirs checkconf \ + clean distclean mostlyclean realclean)" "" + -include Makefile.dep +endif +include $(srcdir)/clean.mk # My rules # -------- -$(TARGET): $(OBJECTS) $(SLIBOBJS) - $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(SLIBOBJS) $(LIBDIRS) $(LIBS) +$(TARGET): $(OBJECTS) $(SLIBOBJS) $(SDCCOBJS) + $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(SLIBOBJS) $(SDCCOBJS) $(LIBDIRS) $(LIBS) .c.o: $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< @@ -103,11 +104,14 @@ $(TARGET): $(OBJECTS) $(SLIBOBJS) $(SLIBOBJS):%.o:$(SLIB)/%.c $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< +$(SDCCOBJS):%.o:$(SDCCLIB)/%.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + # Remaking configuration # ---------------------- checkconf: - @if [ -f $(PRJDIR)/devel ]; then\ - $(MAKE) -f conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" freshconf;\ + @if [ -f $(top_builddir)/devel ]; then\ + $(MAKE) -f conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" freshconf;\ fi # End of cpp/Makefile