const char sig[3] = {0x7f, 'D', 'W'};
-const char* dw_errors[] = {"Success", "Used already", "File open fail", "Invalid signature", "Invalid version", "Parser returned NULL", "Cannot call non-method", "Unknown method", "Insufficient arguments", "Too many arguments", "Not used", "Too many tables", "Database not selected", "Parser fail", "Type mismatch"};
+#define DEFINE_DW_DATABASE
+#include "../Resource/resource.c"
#ifdef M_I86
#define BUFSIZE 128
./Grammar::
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
-./Library:: ./Grammar
+./Library:: ./Grammar ./Resource
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
-./Client:: ./Library
+./Client:: ./Library ./Resource
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
-./Server:: ./Library
+./Server:: ./Library ./Resource
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
-./RemoteClient:: ./Library
+./RemoteClient:: ./Library ./Resource
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
./Installer:: ./Library
./Tool::
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET)
+./Resource::
+ $(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET) $(RESOURCE_TARGET)
+
./Document:: ./Tool
$(MAKE) -C $@ $(COMPILE_FLAGS) $(TARGET) $(DOCTARGET)
$(MAKE) -C ./Installer clean $(COMPILE_FLAGS)
$(MAKE) -C ./Document clean $(COMPILE_FLAGS)
$(MAKE) -C ./Tool clean $(COMPILE_FLAGS)
+ $(MAKE) -C ./Resource clean $(COMPILE_FLAGS)
get-version:
@echo $(VERSION)
--- /dev/null
+# $Id$
+
+.PHONY: english japanese dosv clean
+
+english: resource-en.c
+ cp resource-en.c resource.c
+
+japanese: resource-jp.c
+ cp resource-jp.c resource.c
+
+dosv: resource-jp.c
+ iconv -f utf-8 -t sjis < resource-jp.c > resource.c
+
+clean:
+ rm -f resource.c
--- /dev/null
+/* $Id$ */
+/* --- START LICENSE --- */
+/* --- END LICENSE --- */
+
+#ifndef __DW_RESOURCE__
+#ifdef DEFINE_DW_DATABASE
+const char* dw_errors[] = {"Success", "Used already", "File open fail", "Invalid signature", "Invalid version", "Parser returned NULL", "Cannot call non-method", "Unknown method", "Insufficient arguments", "Too many arguments", "Not used", "Too many tables", "Database not selected", "Parser fail", "Type mismatch"};
+#endif
+#endif
--- /dev/null
+/* $Id$ */
+/* --- START LICENSE --- */
+/* --- END LICENSE --- */
+
+#ifndef __DW_RESOURCE__
+#ifdef DEFINE_DW_DATABASE
+const char* dw_errors[] = {"Success", "Used already", "File open fail", "Invalid signature", "Invalid version", "Parser returned NULL", "Cannot call non-method", "Unknown method", "Insufficient arguments", "Too many arguments", "Not used", "Too many tables", "Database not selected", "Parser fail", "Type mismatch"};
+#endif
+#endif