Version info script added.
authorEmanuele Aliberti <ea@iol.it>
Sun, 7 Apr 2002 13:53:51 +0000 (13:53 +0000)
committerEmanuele Aliberti <ea@iol.it>
Sun, 7 Apr 2002 13:53:51 +0000 (13:53 +0000)
Modified to link against /dk/psx/lib/psxdll.a

svn path=/trunk/; revision=2827

posix/apps/baresh/Makefile
posix/apps/baresh/sh.rc [new file with mode: 0644]

index 7d811ae..92b9208 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1 2002/01/20 21:22:29 ea Exp $
+# $Id: Makefile,v 1.2 2002/04/07 13:53:51 ea Exp $
 #
 # Tu run it in Win32 console mode, undefine __SUBSYSTEM_WINDOWS__
 # and pass "console" in the ld's --subsystem option.
 #
 # Tu run it in Win32 console mode, undefine __SUBSYSTEM_WINDOWS__
 # and pass "console" in the ld's --subsystem option.
@@ -12,11 +12,11 @@ TARGET_NAME=sh
 
 CFLAGS=-D__SUBSYSTEM_WINDOWS__
 
 
 CFLAGS=-D__SUBSYSTEM_WINDOWS__
 
-OBJECTS=$(TARGET_NAME).o
+OBJECTS=$(TARGET_NAME).o $(TARGET_NAME).coff
 
 LIBRARIES=\
        $(PATH_TO_PSX_TOP)/lib/crt0w32.o \
 
 LIBRARIES=\
        $(PATH_TO_PSX_TOP)/lib/crt0w32.o \
-       $(PATH_TO_PSX_TOP)/lib/psxdll/psxdll.a
+       $(PATH_TO_TOP)/dk/psx/lib/psxdll.a
 
 $(TARGET_NAME): $(OBJECTS) $(LIBRARIES)
        $(CC) \
 
 $(TARGET_NAME): $(OBJECTS) $(LIBRARIES)
        $(CC) \
@@ -28,6 +28,13 @@ $(TARGET_NAME): $(OBJECTS) $(LIBRARIES)
                -nostartfiles \
                -nostdlib
 
                -nostartfiles \
                -nostdlib
 
+$(TARGET_NAME).coff: $(TARGET_NAME).rc
+       $(RC) \
+               --include-dir $(PATH_TO_TOP)/include \
+               --output-format coff \
+               $< $@ 
+               
+
 include $(PATH_TO_TOP)/rules.mak
 
 # EOF
 include $(PATH_TO_TOP)/rules.mak
 
 # EOF
diff --git a/posix/apps/baresh/sh.rc b/posix/apps/baresh/sh.rc
new file mode 100644 (file)
index 0000000..efc286d
--- /dev/null
@@ -0,0 +1,38 @@
+#include <defines.h>
+#include <reactos/resource.h>
+
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+VS_VERSION_INFO VERSIONINFO
+       FILEVERSION     RES_UINT_FV_MAJOR,RES_UINT_FV_MINOR,RES_UINT_FV_REVISION,RES_UINT_FV_BUILD
+       PRODUCTVERSION  RES_UINT_PV_MAJOR,RES_UINT_PV_MINOR,RES_UINT_PV_REVISION,RES_UINT_PV_BUILD      
+       FILEFLAGSMASK   0x3fL
+#ifdef _DEBUG
+       FILEFLAGS       0x1L
+#else
+       FILEFLAGS       0x0L
+#endif
+       FILEOS          0x40004L
+       FILETYPE        0x2L
+       FILESUBTYPE     0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904b0"
+        BEGIN
+            VALUE "CompanyName",       RES_STR_COMPANY_NAME
+            VALUE "FileDescription",   "Bare sh for POSIX+\0"
+            VALUE "FileVersion",       RES_STR_FILE_VERSION
+            VALUE "InternalName",      "sh\0"
+            VALUE "LegalCopyright",    RES_STR_LEGAL_COPYRIGHT
+            VALUE "OriginalFilename",  "sh\0"
+            VALUE "ProductName",       RES_STR_PRODUCT_NAME
+            VALUE "ProductVersion",    RES_STR_PRODUCT_VERSION
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+    END
+END
+