summaryrefslogtreecommitdiff
path: root/core/Makefile
blob: 398e0dc786010dc6ebcfcf9192f83b9bd7fe46b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS=-g -mwindows -mwin32 -D DEBUG -I../api/
CXXFLAGS=${CFLAGS}
LDFLAGS=-static-libgcc -Wl,--subsystem=windows
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
clean:
	rm *.o
	rm core.exe