diff options
author | Lord_Evil <omw@three.com.au> | 2010-08-25 19:55:50 +1000 |
---|---|---|
committer | Lord_Evil <omw@three.com.au> | 2010-08-25 19:55:50 +1000 |
commit | ab7ce65d1de08401e0b0fbf7c7491c8abf9d71a7 (patch) | |
tree | 38ad49e84572ab2a6b2af6eadd92f5dda4ecf165 | |
parent | 599d73442416d9bad663e4d0900265e073946600 (diff) |
Going this way, plz
-rw-r--r-- | core/Makefile | 9 | ||||
-rw-r--r-- | core/my.Makefile | 19 |
2 files changed, 22 insertions, 6 deletions
diff --git a/core/Makefile b/core/Makefile index 1613c29..1c02f90 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1,19 +1,16 @@ +include Makefile.inc CFLAGS=-g -mwindows -mwin32 -D DEBUG -I../api/ LDFLAGS=-static-libgcc -Wl,--subsystem=windows CXXFLAGS=${CFLAGS} CPPFLAGS = -CC=i686-pc-mingw32-gcc -CXX=i686-pc-mingw32-g++ -STRIP=i686-pc-mingw32-strip -LD=i686-pc-mingw32-ld LNK_COMMON=-lkernel32 MAINOBJS=main.o all: main main: $(MAINOBJS) $(CXX) $(MAINOBJS) $(LNK_COMMON) $(LDFLAGS) -o core.exe - #$(STRIP) core.exe - #upx -9 core.exe +#$(STRIP) core.exe +#upx -9 core.exe clean: rm *.o rm core.exe diff --git a/core/my.Makefile b/core/my.Makefile new file mode 100644 index 0000000..63a3f52 --- /dev/null +++ b/core/my.Makefile @@ -0,0 +1,19 @@ +include Makefile.inc +CFLAGS=-g -mwindows -mwin32 -D DEBUG -I../api/ +CXXFLAGS=${CFLAGS} +LDFLAGS=-static-libgcc -Wl,--subsystem=windows +CPPFLAGS = +LNK_COMMON=-lkernel32 +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 + |