From 03663ad027e48572010c917ffba6a307f0760768 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 14 Aug 2003 12:24:12 +0000
Subject: [PATCH] Build ex_diag by default

---
 src/odoors/GNUmakefile | 7 +++++--
 src/odoors/ex_diag.c   | 3 ++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/odoors/GNUmakefile b/src/odoors/GNUmakefile
index d98baf470a..8bef5cb84c 100644
--- a/src/odoors/GNUmakefile
+++ b/src/odoors/GNUmakefile
@@ -52,7 +52,7 @@ LD	:=	ld
 #
 # Compiler command-line flags.
 #
-CFLAGS	+=	-O2 -g -L.
+CFLAGS	+=	-O2 -g -L. -I../xpdev
 # /MTd /Zi - for debug
 #
 #------------------------------------------------------------------------------
@@ -85,7 +85,7 @@ endif
 #
 # Define primary target.
 #
-all: ${LIBDIR}libODoors${SHLIB} ${LIBDIR}libODoors${STATICLIB}
+all: ${LIBDIR}libODoors${SHLIB} ${LIBDIR}libODoors${STATICLIB} ex_diag
 #
 #------------------------------------------------------------------------------
 #
@@ -156,5 +156,8 @@ ${LIBDIR}libODoors${STATICLIB} : ${OBJECTS}
 ex_chat: ex_chat.c ${LIBDIR}libODoors${SHLIB}
 	$(CC) $(CFLAGS) ex_chat.c -o ex_chat -lODoors
 
+ex_diag: ex_diag.c ${LIBDIR}libODoors${SHLIB}
+	$(CC) $(CFLAGS) ex_diag.c -o ex_diag -lODoors
+
 #
 #------------------------------------------------------------------------------
diff --git a/src/odoors/ex_diag.c b/src/odoors/ex_diag.c
index c9da837e60..651a751d87 100644
--- a/src/odoors/ex_diag.c
+++ b/src/odoors/ex_diag.c
@@ -8,7 +8,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "opendoor.h"
+#include "OpenDoor.h"
+#include <genwrap.h>
 
 typedef enum
 {
-- 
GitLab