Last change
on this file since 896 was 877, checked in by alloc, 11 years ago |
Daodan: Moved flatline to subfolder, flatline enabled through patch "flatline"
|
-
Property svn:executable
set to
*
|
File size:
1.9 KB
|
Rev | Line | |
---|
[877] | 1 | FOLDERS = patches flatline
|
---|
| 2 | FILES = Daodan.c Daodan_BSL.c Daodan_Character.c Daodan_Cheater.c Daodan_Config.c Daodan_Console.c Daodan_GL.c Daodan_Patch.c Daodan_Persistence.c Daodan_Utility.c Daodan_Win32.c Inifile_Reader.c _DLLInfo.rc patches/Patches.c flatline/Flatline.c flatline/Flatline_BSL.c flatline/Flatline_Client.c flatline/Flatline_Hooks.c flatline/Flatline_Net.c flatline/Flatline_Packet.c flatline/Flatline_PacketReader.c flatline/Flatline_PacketBuilder.c flatline/Flatline_Server.c flatline/Flatline_Win32.c flatline/Mariusnet.c flatline/Flatline_Events.c
|
---|
| 3 |
|
---|
| 4 | DEF =
|
---|
| 5 | GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter $(addprefix -D,$(DEF))
|
---|
| 6 | LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll
|
---|
| 7 | LOCALE = LC_MESSAGES=C
|
---|
| 8 |
|
---|
| 9 | #LIBS = -lwinmm -lopengl32
|
---|
| 10 | LIBS = -lgdi32 -lwsock32
|
---|
| 11 | OBJS = src/binkw32.def
|
---|
| 12 | OUT = build/binkw32.dll
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | ###################################################
|
---|
| 16 | # #
|
---|
| 17 | # Should not be required to change anything below #
|
---|
| 18 | # #
|
---|
| 19 | ###################################################
|
---|
| 20 |
|
---|
[684] | 21 | UNAME := $(shell uname -s)
|
---|
[683] | 22 | ifeq ("Linux","$(UNAME)")
|
---|
| 23 | GCC := i686-w64-mingw32-gcc
|
---|
[685] | 24 | WINDRES := i686-w64-mingw32-windres
|
---|
[683] | 25 | else
|
---|
| 26 | GCC := gcc
|
---|
[685] | 27 | WINDRES := windres
|
---|
[683] | 28 | endif
|
---|
| 29 |
|
---|
[877] | 30 | DESTFOLDERS = $(addprefix build/,$(FOLDERS))
|
---|
| 31 | SRC = $(addprefix src/,$(FILES))
|
---|
[685] | 32 | DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC)))
|
---|
[678] | 33 |
|
---|
[877] | 34 | ALL: $(DESTFOLDERS) $(DEST) $(OBJS)
|
---|
[839] | 35 | @echo "Linking"
|
---|
[688] | 36 | $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
|
---|
[678] | 37 |
|
---|
| 38 | clean:
|
---|
| 39 | rm $(DEST)
|
---|
[877] | 40 | rm -R $(DESTFOLDERS)
|
---|
[678] | 41 | rm $(OUT)
|
---|
| 42 |
|
---|
[877] | 43 | $(DESTFOLDERS):
|
---|
| 44 | mkdir -p $@
|
---|
[839] | 45 |
|
---|
[678] | 46 | build/%.o: src/%.c
|
---|
[689] | 47 | @echo "Compiling $<"
|
---|
[688] | 48 | $(LOCALE) $(GCC) $(GCCFLAGS) -c -o $@ $<
|
---|
[689] | 49 | @echo
|
---|
[678] | 50 |
|
---|
[685] | 51 | build/%.o: src/%.rc
|
---|
[689] | 52 | @echo "Assembling resource $<"
|
---|
[685] | 53 | $(WINDRES) -i $< -o $@
|
---|
[689] | 54 | @echo
|
---|
[685] | 55 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.