(create_process): Skip the ioctl if fd is -1.
[bpt/emacs.git] / lib-src / Makefile.in
index e48ff1c..ff3cb30 100644 (file)
@@ -18,6 +18,7 @@ CC=@CC@
 CFLAGS=@CFLAGS@
 ALLOCA=@ALLOCA@
 C_SWITCH_SYSTEM=@c_switch_system@
+C_SWITCH_MACHINE=@c_switch_machine@
 LOADLIBES=@libsrc_libs@
 YACC=@YACC@
 version=@version@
@@ -81,8 +82,8 @@ INSTALLABLE_SCRIPTS = rcs-checkin
 
 # Things that Emacs runs internally, or during the build process,
 # which should not be installed in bindir.
-UTILITIES= test-distrib make-path wakeup make-docfile digest-doc sorted-doc \
-       movemail cvtmail fakemail yow env emacsserver hexl timer
+UTILITIES= test-distrib make-path wakeup profile make-docfile digest-doc \
+       sorted-doc movemail cvtmail fakemail yow env emacsserver hexl timer
 
 # Like UTILITIES, but they're not system-dependent, and should not be
 # deleted by the distclean target.
@@ -97,11 +98,11 @@ SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \
 ### Some other files - those shared with other GNU utilities - need
 ### HAVE_CONFIG_H #defined before they know they can take advantage of
 ### the information in ../src/config.h.
-ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \
+ALL_CFLAGS = ${C_SWITCH_SYSTEM} ${C_SWITCH_MACHINE} -Demacs -DHAVE_CONFIG_H \
    -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
-LINK_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \
+LINK_CFLAGS = ${C_SWITCH_SYSTEM} ${C_SWITCH_MACHINE} -Demacs -DHAVE_CONFIG_H \
    -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
-CPP_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \
+CPP_CFLAGS = ${C_SWITCH_SYSTEM} ${C_SWITCH_MACHINE} -Demacs -DHAVE_CONFIG_H \
    -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
 # This is the default compilation command.
 # But we should never rely on it, because some make version
@@ -119,10 +120,10 @@ ${archlibdir}: all
        ./make-path ${archlibdir}
        if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
          for file in ${UTILITIES}; do \
-           $(INSTALL_PROGRAM) $$file ${archlibdir}/$$file ; \
+           (cd ..; $(INSTALL_PROGRAM) lib-src/$$file ${archlibdir}/$$file) ; \
          done ; \
          for file in ${SCRIPTS}; do \
-           $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file ; \
+           (cd ..; $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file); \
          done ; \
        fi
 
@@ -132,10 +133,10 @@ install: ${archlibdir}
        @echo
        @echo "Installing utilities for users to run."
        for file in ${INSTALLABLES} ; do \
-         $(INSTALL_PROGRAM) $${file} ${bindir}/$${file} ; \
+         (cd ..; $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \
        done
        for file in ${INSTALLABLE_SCRIPTS} ; do \
-         $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file} ; \
+         (cd ..; $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \
        done
 
 uninstall:
@@ -198,6 +199,9 @@ ctags: ${srcdir}/etags.c $(GETOPTDEPS) etags
 wakeup: ${srcdir}/wakeup.c
        $(CC) ${ALL_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup
 
+profile: ${srcdir}/profile.c
+       $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
+
 make-docfile: ${srcdir}/make-docfile.c
        $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile