ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/makefile
Revision: 684
Committed: Sun Mar 3 19:18:08 2013 UTC (12 years, 7 months ago) by alloc
File size: 1017 byte(s)
Log Message:
Daodan: Fixed makefile to forward-export to realbink

File Contents

# Content
1 UNAME := $(shell uname -s)
2 ifeq ("Linux","$(UNAME)")
3 GCC := i686-w64-mingw32-gcc
4 DLLTOOL := i686-w64-mingw32-dlltool
5 else
6 GCC := gcc
7 DLLTOOL := dlltool
8 endif
9
10 GCCFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct
11 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll -mthread -Xlinker --major-image-version -Xlinker 1
12
13 #LIBS = -lwinmm -lopengl32 -lgdi32
14 LIBS = -lgdi32
15 OBJS = src/binkw32.def
16 OUT = build/binkw32.dll
17
18 SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Console.c src/Daodan_DLLStubs.c src/daodan_gl.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Daodan_WindowHack.c src/inifile_reader.c src/Oni_Symbols.c
19 DEST = $(patsubst src/%.c,build/%.o,$(SRC))
20
21 ALL: $(DEST) $(OBJS)
22 echo "Linking $<"
23 $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
24
25 clean:
26 rm $(DEST)
27 rm $(OUT)
28
29 build/%.o: src/%.c
30 echo "Compiling $<"
31 $(GCC) $(GCCFLAGS) -c -o $@ $<
32 echo
33

Properties

Name Value
svn:executable *