OSDN Git Service

* Modify and Add files for nkf.exe and nkf32.dll.
[nkf/nkf.git] / nkf.mak
diff --git a/nkf.mak b/nkf.mak
new file mode 100755 (executable)
index 0000000..88a5b1b
--- /dev/null
+++ b/nkf.mak
@@ -0,0 +1,67 @@
+# Visual C++ 2005 Express Edition
+CC = cl
+LD=link
+CFLAGS = -O2 -DMSDOS -DWIN32 -D__WIN32__ -D_CRT_SECURE_NO_DEPRECATE
+LD_FLAGS = 
+LIBS = user32.lib kernel32.lib gdi32.lib
+RC = rc
+
+all: nkf.exe nkf32.dll
+
+nkf.exe : nkf.obj config.h utf8tbl.obj version.res
+       $(CC) $(CFLAGS) /MT nkf.obj utf8tbl.obj version.res /link setargv.obj
+       copy nkf.exe WIN\nkf.exe
+
+# Windows NT
+nkf32.dll: nkf32.obj utf8tbl.obj dll.res
+       $(LD) $(LDFLAGS) /DLL /DEF:dll.def nkf32.obj utf8tbl.obj dll.res
+       copy nkf32.dll NT\nkf32.dll
+       copy nkf32.lib NT\nkf32.lib
+
+# Windows NT
+nkf32.lib: nkf32.obj utf8tbl.obj dll.res
+       $(LD) $(LDFLAGS) /DLL /DEF:dll.def nkf32.obj utf8tbl.obj dll.res
+       copy nkf32.dll NT\nkf32.dll
+       copy nkf32.lib NT\nkf32.lib
+
+nkf.obj : nkf.c config.h
+       $(CC) $(CFLAGS) /MT -c nkf.c
+
+# Windows NT
+nkf32.obj: nkf32.c nkf.c nkf32dll.c config.h nkf.h
+       $(CC) $(CFLAGS) /LD /DLL -DWIN32DLL -DTOMIME -DGETKANJICODE -DFILECONVERT1 -DFILECONVERT2 -DUNICODESUPPORT /c nkf32.c
+
+utf8tbl.obj : utf8tbl.c config.h
+       $(CC) $(CFLAGS) /c utf8tbl.c
+
+version.res: version.rc
+    $(RC) $(RCFLAGS) version.rc
+
+dll.res: dll.rc
+    $(RC) $(RCFLAGS) dll.rc
+
+clean:
+       -del nkf.obj
+       -del nkf32.obj
+       -del utf8tbl.obj
+       -del version.res
+       -del dll.res
+       -del nkf.exe
+       -del nkf32.dll
+       -del nkf32.lib
+
+# Windows 9x
+#nkf32.dll: nkf32.obj utf8tbl.obj dll.res
+#      $(LD) $(LDFLAGS) /DLL /DEF:dll.def nkf32.obj utf8tbl.obj dll.res
+#      copy nkf32.dll 9x\nkf32.dll
+#      copy nkf32.lib 9x\nkf32.lib
+#
+# Windows 9x
+#nkf32.lib: nkf32.obj utf8tbl.obj dll.res
+#      $(LD) $(LDFLAGS) /DLL /DEF:dll.def nkf32.obj utf8tbl.obj dll.res
+#      copy nkf32.dll 9x\nkf32.dll
+#      copy nkf32.lib 9x\nkf32.lib
+#
+# Windows 9x
+#nkf32.obj: nkf32.c nkf.c nkf32dll.c config.h nkf.h
+#      $(CC) $(CFLAGS) /LD /DLL -DWIN32DLL -DTOMIME -DGETKANJICODE -DFILECONVERT1 -DFILECONVERT2 -UUNICODESUPPORT /c nkf32.c