-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
635b8e6
commit 7723aaa
Showing
5 changed files
with
53 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# This Makefile will build a DLL and an application using the DLL. | ||
|
||
all : AddLib.dll AddTest.exe | ||
all: AddLib.dll AddTest.exe | ||
|
||
AddLib.dll : include/add.h | ||
AddLib.dll: include/add.h | ||
gcc -O3 -std=c99 -D ADD_EXPORTS -Wall -I.\include -c src/add.c -o obj/add.o | ||
windres -i res/resource.rc -o obj/resource.o | ||
gcc -o AddLib.dll obj/add.o obj/resource.o -shared -s -Wl,--subsystem,windows,--out-implib,libaddlib.a | ||
|
||
AddTest.exe : include/add.h AddLib.dll | ||
AddTest.exe: include/add.h AddLib.dll | ||
gcc -O3 -std=c99 -Wall -I.\include -c src/addtest.c -o obj/addtest.o | ||
gcc -o AddTest.exe obj/addtest.o -s -L. -lAddLib | ||
|
||
clean : | ||
clean: | ||
del obj\*.o *.exe *.dll *.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
1 VERSIONINFO | ||
FILEVERSION 1,0,0,0 | ||
PRODUCTVERSION 1,0,0,0 | ||
FILEFLAGSMASK 0x17L | ||
#include <windows.h> | ||
|
||
// DLL version information. | ||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION 1,0,0,0 | ||
PRODUCTVERSION 1,0,0,0 | ||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK | ||
#ifdef _DEBUG | ||
FILEFLAGS 0x1L | ||
FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE | ||
#else | ||
FILEFLAGS 0x0L | ||
FILEFLAGS 0 | ||
#endif | ||
FILEOS 0x4L | ||
FILETYPE 0x1L | ||
FILESUBTYPE 0x0L | ||
FILEOS VOS_NT_WINDOWS32 | ||
FILETYPE VFT_DLL | ||
FILESUBTYPE VFT2_UNKNOWN | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "080904b0" | ||
BEGIN | ||
BLOCK "080904b0" | ||
BEGIN | ||
VALUE "Comments", "Addition Library" | ||
VALUE "CompanyName", "Transmission Zero" | ||
VALUE "FileDescription", "A library to perform addition." | ||
VALUE "FileVersion", "1, 0, 0, 0" | ||
VALUE "InternalName", "AddLib" | ||
VALUE "LegalCopyright", "�2011 Martin Payne" | ||
VALUE "OriginalFilename", "AddLib.dll" | ||
VALUE "ProductName", "Addition Library" | ||
VALUE "ProductVersion", "1, 0, 0, 0" | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x809, 1200 | ||
VALUE "CompanyName", "Transmission Zero" | ||
VALUE "FileDescription", "A library to perform addition." | ||
VALUE "FileVersion", "1.0.0.0" | ||
VALUE "InternalName", "AddLib" | ||
VALUE "LegalCopyright", "�2013 Transmission Zero" | ||
VALUE "OriginalFilename", "AddLib.dll" | ||
VALUE "ProductName", "Addition Library" | ||
VALUE "ProductVersion", "1.0.0.0" | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x809, 1200 | ||
END | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters