From 486351608600f02ff40176ffa6981f693077dca5 Mon Sep 17 00:00:00 2001
From: luca0N! <63941044+luca0N@users.noreply.github.com>
Date: Sat, 23 May 2020 22:52:20 -0300
Subject: [PATCH] Added version resource
---
Makefile | 10 +++---
ldl3.rc | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
resource.h | 36 +++++++++++++++++++++
3 files changed, 137 insertions(+), 4 deletions(-)
create mode 100644 ldl3.rc
create mode 100644 resource.h
diff --git a/Makefile b/Makefile
index fb7e28d..18ee863 100644
--- a/Makefile
+++ b/Makefile
@@ -20,21 +20,23 @@
C=gcc
CFLAG=-s -Os
+
MT=mt
MTARGS=-nologo
+WINDRES=windres
ldl3: main.o about.h str.h colors.h
- $(C) main.o about.h str.h colors.h -o ldl3 $(CFLAG)
+ $(WINDRES) ldl3.rc -O coff -o ldl3.res
+ $(C) main.o about.h str.h colors.h ldl3.res -o ldl3 $(CFLAG)
$(MT) -manifest ldl3.manifest -outputresource:ldl3.exe $(MTARGS)
-
main.o: main.c
$(C) -c main.c $(CFLAG)
clean:
- rm *.o *.exe
+ rm *.o *.exe *.res
cleandust:
- rm *.o
+ rm *.o *.res
dustless:
make
diff --git a/ldl3.rc b/ldl3.rc
new file mode 100644
index 0000000..471366a
--- /dev/null
+++ b/ldl3.rc
@@ -0,0 +1,95 @@
+/*
+ limpador do luca0N! 3
+ Copyright (C) 2020 luca0N!
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+ Contact me by e-mail via .
+*/
+
+// Microsoft Visual C++ generated resource script.
+//
+#pragma code_page(65001)
+
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (United States) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 3,0,0,0
+ PRODUCTVERSION 3,0,0,0
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x40000L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "041604b0"
+ BEGIN
+ VALUE "CompanyName", "luca0N!"
+ VALUE "FileDescription", "limpador do luca0N!"
+ VALUE "FileVersion", "v3.0"
+ VALUE "InternalName", "ldl3"
+ VALUE "LegalCopyright", "Copyright (C) 2020 luca0N!"
+ VALUE "OriginalFilename", "ldl3.exe"
+ VALUE "ProductName", "limpador do luca0N!"
+ VALUE "ProductVersion", "v3.0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x416, 1200
+ END
+END
+
+#endif // English (United States) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/resource.h b/resource.h
new file mode 100644
index 0000000..79c26fc
--- /dev/null
+++ b/resource.h
@@ -0,0 +1,36 @@
+/*
+ limpador do luca0N! 3
+ Copyright (C) 2020 luca0N!
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+ Contact me by e-mail via .
+*/
+
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by ldl3.rc
+//
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NO_MFC 1
+#define _APS_NEXT_RESOURCE_VALUE 101
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif