Add support for Unix lookup by name to user-uid and user-gid
[sxemacs] / src / Makefile.am
index b1b7540..5e22ac3 100644 (file)
@@ -150,23 +150,20 @@ header_HEADERS = $(acgen_headers)         \
 sheader_HEADERS = $(srcdir)/s/*.h
 mheader_HEADERS = $(srcdir)/m/*.h
 
-BUILT_SOURCES = sheap-adjust.h dump-id.c
-EXTRA_DIST = sheap-adjust.h
+BUILT_SOURCES = dump-id.c
+EXTRA_DIST =
 CLEANFILES = core* stage1 stage2 *.stamp $(BUILT_SOURCES) \
        sxemacs.dmp DOC config.values
 
 ## binaries
 sxemacs_SOURCES = $(header_HEADERS)
 ##$(LOCK_OBJ) $(RTC_patch_objs)
-EXTRA_sxemacs_SOURCES = lastfile.c profile.c sheap.c pre-crt0.c ecrt0.c
+EXTRA_sxemacs_SOURCES = lastfile.c profile.c pre-crt0.c ecrt0.c
 sxemacs_CPPFLAGS = $(AM_CPPFLAGS)
 sxemacs_lddep = $(start_files) $(pdumplibs) $(nodumplibs)
 if WITH_PDUMP
 sxemacs_lddep += dump-id.o
 endif
-if BUILD_SHEAP
-sxemacs_lddep += sheap.o
-endif
 if HAVE_SETITIMER
 sxemacs_lddep += profile.o
 endif
@@ -202,7 +199,7 @@ libsxecore_a_headers =                                                      \
        process.h                                                       \
        procimpl.h rangetab.h regex.h semaphore.h seq.h skiplist.h      \
        specifier.h symeval.h symsinit.h syntax.h syscommctrl.h         \
-       sysdep.h sysdir.h sysfile.h sysproc.h syspwd.h                  \
+       sysdep.h sysdir.h sysfile.h sysproc.h syspwd.h sysgrp.h         \
        syssignal.h systime.h syswait.h \
        sxemacs.h
 libsxecore_a_sources =                                                 \
@@ -213,8 +210,7 @@ libsxecore_a_sources =                                                      \
        dynarr.c editfns.c elhash.c emacs.c eval.c dynacat.c            \
        extents.c fileio.c filemode.c fns.c general.c hash.c indent.c   \
        intl.c line-number.c lread.c lstream.c macros.c map.c marker.c  \
-       md5.c                                                           \
-       objects.c opaque.c print.c process.c process-unix.c rangetab.c  \
+       md5.c opaque.c print.c process.c process-unix.c rangetab.c      \
        regex.c search.c semaphore.c seq.c signal.c skiplist.c          \
        strftime.c symbols.c syntax.c sysdep.c undo.c
 libsxecore_a_SOURCES = $(libsxecore_a_headers) $(libsxecore_a_sources)
@@ -257,12 +253,6 @@ RM = rm -f
 CROSSMAKE = (cd $$(dirname $@) && $(MAKE) $(AM_MAKEFLAGS) $$(basename $@))
 
 
-sheap-adjust.h:
-       @echo "Resetting \`src/sheap-adjust.h'."; \
-       (echo "/*       Do not edit this file!" ; \
-        echo " Automatically generated by SXEmacs */" ; \
-        echo "#define SHEAP_ADJUSTMENT 0") > $@
-
 dump-id.c: $(bldlibsrcdir)/make-dump-id
        $(bldlibsrcdir)/make-dump-id
 
@@ -322,7 +312,7 @@ config.values: config.h
 ## one day (when SXE is linked with its own shared libraries) we HAVE to
 ## go that way but at the moment it's okay the way it is
 SXE_SHOW_DUMP = $$($(BITCHENV) $(DESTDIR)$(bindir)/sxemacs -sd)
-SXEDMP_FILENAME=sxemacs-$(old_version)-$(SXE_SHOW_DUMP).dmp
+SXEDMP_FILENAME=sxemacs.dmp
 
 sxemacs.dmp: $(SXEMACS) $(archlib_DATA) $(bldlispdir)/update-elc.stamp
        if test -e "$(bldlispdir)/update-elc.stamp"; then \
@@ -355,6 +345,9 @@ install-exec-hook:
                -l $(sxelispdir)/loadup.el \
                --dump $(DESTDIR)$(archlibdir)/$(SXEDMP_FILENAME))
 
+uninstall-hook:
+       (cd $(DESTDIR)$(archlibdir) && $(RM) $(SXEDMP_FILENAME))
+
 
 ## someone who wants to use this actually needs repeat the fuss above
 sxemacs.dmp.gdb: $(SXEMACS) $(AALFILE) \