# # # VERSION = @VERSION@ VERSIONHI = @VERSIONHI@ VERSIONLO = @VERSIONLO@ VERSIONP = @VERSIONP@ SHELL = /bin/sh CPP = @CPP@ INSTALL = @INSTALL@ CP = @CP@ PRJDIR = .. prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ datadir = @datadir@ sdcc_datadir = @sdcc_datadir@ includedir = @includedir@ mandir = @mandir@ man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 infodir = @infodir@ srcdir = @srcdir@ CPPFLAGS = @CPPFLAGS@ -I$(PRJDIR) # Compiling entire program or any subproject # ------------------------------------------ all: # Compiling and installing everything and runing test # --------------------------------------------------- install: all installdirs $(CP) -r asm *.h $(sdcc_datadir)/include/ # Deleting all the installed files # -------------------------------- uninstall: for hdr in *.h; do rm -f $(sdcc_datadir)/$$hdr; done # Performing self-test # -------------------- check: # Performing installation test # ---------------------------- installcheck: # Creating installation directories # --------------------------------- installdirs: [ -d $(sdcc_datadir)/include ] || mkdir -p $(sdcc_datadir)/include # Creating dependencies # --------------------- dep: #Makefile.dep #Makefile.dep: # $(CPP) $(CPPFLAGS) $(M_OR_MM) *.c >main.dep #include Makefile.dep include clean.mk # My rules # -------- # Remaking configuration # ---------------------- checkconf: @if [ -f $(PRJDIR)/devel ]; then\ $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" PRJDIR="$(PRJDIR)" \ freshconf;\ fi # End of main_in.mk/main.mk