Changeset 688 for Daodan/makefile


Ignore:
Timestamp:
Mar 4, 2013, 3:21:23 PM (12 years ago)
Author:
alloc
Message:

Daodan: Changed makefile (more warnings, messages always in english, C99), cleaned up symbol Oni definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/makefile

    r687 r688  
    88endif
    99
    10 GCCFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct
     10GCCFLAGS = -std=c99 -O0 -Wall -fomit-frame-pointer -fpack-struct -pedantic -Wextra -Wno-unused-variable
    1111LINKFLAGS = -O0 -Wall -fomit-frame-pointer -fpack-struct -s -mdll
     12LOCALE = LC_MESSAGES=C
    1213
    1314#LIBS = -lwinmm -lopengl32 -lgdi32
     
    1617OUT = build/binkw32.dll
    1718
    18 SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.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/Daodan_WindowHack.c src/inifile_reader.c src/Oni_Symbols.c src/_DLLInfo.rc
     19SRC = src/Daodan.c src/Daodan_BSL.c src/Daodan_Character.c src/Daodan_Cheater.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/Daodan_WindowHack.c src/inifile_reader.c src/_DLLInfo.rc
    1920DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC)))
    2021
    2122ALL: $(DEST) $(OBJS)
    2223        echo "Linking $<"
    23         $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
     24        $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
    2425
    2526clean:
     
    2930build/%.o: src/%.c
    3031        echo "Compiling $<"
    31         $(GCC) $(GCCFLAGS) -c -o $@ $<
     32        $(LOCALE) $(GCC) $(GCCFLAGS) -c -o $@ $<
    3233        echo
    3334
     
    3536        echo "Assembling resource $<"
    3637        $(WINDRES) -i $< -o $@
     38        echo
    3739
Note: See TracChangeset for help on using the changeset viewer.