summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Makefile9
-rw-r--r--core/my.Makefile19
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
+