diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 14:49:28 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-01 14:49:28 +0300 |
commit | ebcf5ee1991c4815eb31674653e7d2e9036ab760 (patch) | |
tree | 8bacb749e3abe8d68ec2e1f6585f4925511f5c35 /core | |
parent | 263892c3b18be3cfa0e749fe2e8b9703e6e30c16 (diff) |
modified: api/api.h
new file: core/Makefile
modified: core/main.cpp
new file: modules/example/Makefile
modified: modules/example/main.cpp
Diffstat (limited to 'core')
-rw-r--r-- | core/Makefile | 20 | ||||
-rw-r--r-- | core/main.cpp | 7 |
2 files changed, 24 insertions, 3 deletions
diff --git a/core/Makefile b/core/Makefile new file mode 100644 index 0000000..e5568e1 --- /dev/null +++ b/core/Makefile @@ -0,0 +1,20 @@ +CFLAGS=-O2 -msse -fomit-frame-pointer -pipe -mwindows -mwin32 -D DEBUG -I../api/ +CXXFLAGS=${CFLAGS} +LDFLAGS=-Wl,-O1 -static-libgcc +CPPFLAGS = +CC=i686-pc-mingw32-gcc +CXX=i686-pc-mingw32-g++ +STRIP=i686-pc-mingw32-strip +LD=i686-pc-mingw32-ld +LNK_COMMON= +MAINOBJS=main.o + +all: main +main: $(MAINOBJS) + $(CXX) $(MAINOBJS) $(LNK_COMMON) $(LDFLAGS) -o core.exe + #$(STRIP) core.exe + #upx -9 core.exe +clean: + rm *.o + rm core.exe + diff --git a/core/main.cpp b/core/main.cpp index 61e7579..5bb4925 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -1,10 +1,11 @@ #include <windows.h> -#include "../api/api.h" +#include <api.h> + +typedef void (*GetPluginInfoType)(PluginInfo*); +typedef void (*PluginHandlerType)(HostInfo*); int main() { return 0; } - - |