Changeset 839 for Daodan/makefile


Ignore:
Timestamp:
Apr 29, 2013, 9:08:16 PM (12 years ago)
Author:
alloc
Message:

Daodan:

  • Fixes #42
  • Breaking out patches to own file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/makefile

    r838 r839  
    1717OUT = build/binkw32.dll
    1818
    19 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
     19FOLDERS = patches
     20SRC = 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
    2021DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC)))
    2122
    22 ALL: $(DEST) $(OBJS)
    23         @echo "Linking $<"
     23ALL: $(FOLDERS) $(DEST) $(OBJS)
     24        @echo "Linking"
    2425        $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
    2526
    2627clean:
    2728        rm $(DEST)
     29        rm -R $(FOLDERS)
    2830        rm $(OUT)
     31
     32$(FOLDERS):
     33        mkdir -p build/$@
    2934
    3035build/%.o: src/%.c
Note: See TracChangeset for help on using the changeset viewer.