summaryrefslogtreecommitdiff
path: root/Makefile.win32
blob: 882ec8926d606a4e838a9acbdef067ebfc6d6909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CXX=g++
LD=g++
ROOT=C:\MinGW
RM=del

TARGET=foo.exe
OBJECTS=gl.o gui.o main.o scene.o shader.o scripting.o terrain_cache.o terrain.o terrain_loader.o tool.o vector.o video.o

OBJECTS+=noiseutils\noiseutils.o scripting\tolua_test.o scripting\test.o widgets\FormattedListboxTextItem.o

CPPFLAGS=-I$(ROOT)\include/SDL -I$(ROOT)\include\CEGUI -I$(ROOT)\include\freetype2 -I. -Wall -g -mconsole
LDFLAGS=-L$(ROOT)\lib -static-libgcc -static-libstdc++
LDFLAGS+=-lCEGUIOpenGLRenderer -lCEGUIBase -lCEGUITGAImageCodec -lCEGUITinyXMLParser -lCEGUIFalagardWRBase -lCEGUISILLYImageCodec
LDFLAGS+=-lSDL_image -lftgl -lfreetype-s -lz -lpcre -lopengl32 -lglu32 -lwinmm -lmingw32 -lSDLmain -lSDL -ljpeg -lnoise -llua -ltolua++_Static

LDFLAGS+=-lboost_filesystem -lboost_system

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(LD) -o $@ $^ $(LDFLAGS)

clean:
	${RM} $(OBJECTS) $(TARGET)