diff lib-src/Makefile.in.in @ 290:c9fe270a4101 r21-0b43

Import from CVS: tag r21-0b43
author cvs
date Mon, 13 Aug 2007 10:36:47 +0200
parents 57709be46d1b
children 4b85ae5eabfb
line wrap: on
line diff
--- a/lib-src/Makefile.in.in	Mon Aug 13 10:35:55 2007 +0200
+++ b/lib-src/Makefile.in.in	Mon Aug 13 10:36:47 2007 +0200
@@ -63,10 +63,20 @@
 
 ## ========================== Lists of Files ===========================
 
+#define NO_SHORTNAMES
+#define NOT_C_CODE
+#include "../src/config.h"
+
 ## Things that a user might actually run,
 ## which should be installed in bindir.
-INSTALLABLES = etags ctags b2m gnuclient ootags
+INSTALLABLES_BASE = etags ctags b2m gnuclient ootags
 INSTALLABLE_SCRIPTS = rcs-checkin pstogif install-sid send-pr gnudoit gnuattach
+#ifdef HAVE_MS_WINDOWS
+INSTALLABLES = $(INSTALLABLES_BASE) runemacs
+#else
+INSTALLABLES = $(INSTALLABLES_BASE) 
+#endif
+
 
 ## Things that Emacs runs internally, or during the build process,
 ## which should not be installed in bindir.
@@ -114,10 +124,6 @@
 
 ## ========================== start of cpp stuff =======================
 
-#define NO_SHORTNAMES
-#define NOT_C_CODE
-#include "../src/config.h"
-
 #ifdef USE_GNU_MAKE
 vpath %.c @srcdir@
 vpath %.h @srcdir@
@@ -264,6 +270,14 @@
 etags: ${etags_deps}
 	$(CC) ${etags_args} -o $@
 
+runemacs_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \
+	-DVERSION='"${version}"' ${srcdir}/../nt/runemacs.c \
+	$(ldflags) -Wl,--subsystem,windows
+runemacs_deps   = ${srcdir}/../nt/runemacs.c ../src/config.h
+
+runemacs: ${runemacs_deps}
+	$(CC) ${runemacs_args} -o $@
+
 ootags_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \
 	-DVERSION='"${version}"' ${srcdir}/ootags.c \
 	$(GETOPTOBJS) regex.o $(ldflags)