Changeset 877 for Daodan/makefile


Ignore:
Timestamp:
Jun 2, 2013, 1:25:34 PM (12 years ago)
Author:
alloc
Message:

Daodan: Moved flatline to subfolder, flatline enabled through patch "flatline"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/makefile

    r876 r877  
     1FOLDERS = patches flatline
     2FILES = 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
     4DEF =
     5GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter $(addprefix -D,$(DEF))
     6LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll
     7LOCALE = LC_MESSAGES=C
     8
     9#LIBS = -lwinmm -lopengl32
     10LIBS = -lgdi32 -lwsock32
     11OBJS = src/binkw32.def
     12OUT = build/binkw32.dll
     13
     14
     15###################################################
     16#                                                 #
     17# Should not be required to change anything below #
     18#                                                 #
     19###################################################
     20
    121UNAME := $(shell uname -s)
    222ifeq ("Linux","$(UNAME)")
     
    828endif
    929
    10 DEF = NOFLATLINE
    11 GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -Wextra -Wno-unused-variable -Wno-unused-parameter -D $(DEF)
    12 LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll
    13 LOCALE = LC_MESSAGES=C
    14 
    15 #LIBS = -lwinmm -lopengl32 -lgdi32
    16 LIBS = -lgdi32 -lwsock32
    17 OBJS = src/binkw32.def
    18 OUT = build/binkw32.dll
    19 
    20 FOLDERS = patches
    21 SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.c src/Daodan_Config.c src/Daodan_Console.c src/Daodan_GL.c src/Daodan_Patch.c src/Daodan_Persistence.c src/Daodan_Utility.c src/Daodan_Win32.c src/Inifile_Reader.c src/_DLLInfo.rc src/patches/Patches.c src/Flatline.c src/Flatline_BSL.c src/Flatline_Client.c src/Flatline_Hooks.c src/Flatline_Net.c src/Flatline_Packet.c src/Flatline_PacketReader.c src/Flatline_PacketBuilder.c src/Flatline_Server.c src/Flatline_Win32.c src/Mariusnet.c  src/Flatline_Events.c
     30DESTFOLDERS = $(addprefix build/,$(FOLDERS))
     31SRC = $(addprefix src/,$(FILES))
    2232DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC)))
    2333
    24 
    25 ALL: $(FOLDERS) $(DEST) $(OBJS)
     34ALL: $(DESTFOLDERS) $(DEST) $(OBJS)
    2635        @echo "Linking"
    2736        $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
     
    2938clean:
    3039        rm $(DEST)
    31         rm -R $(FOLDERS)
     40        rm -R $(DESTFOLDERS)
    3241        rm $(OUT)
    3342
    34 $(FOLDERS):
    35         mkdir -p build/$@
     43$(DESTFOLDERS):
     44        mkdir -p $@
    3645
    3746build/%.o: src/%.c
Note: See TracChangeset for help on using the changeset viewer.