ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/makefile
(Generate patch)

Comparing Daodan/makefile (file contents):
Revision 838 by alloc, Mon Apr 29 16:29:16 2013 UTC vs.
Revision 839 by alloc, Mon Apr 29 19:08:16 2013 UTC

# Line 16 | Line 16 | LIBS = -lgdi32
16   OBJS = src/binkw32.def
17   OUT = build/binkw32.dll
18  
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
19 > FOLDERS = patches
20 > 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
21   DEST = $(patsubst src/%.rc,build/%.o,$(patsubst src/%.c,build/%.o,$(SRC)))
22  
23 < ALL: $(DEST) $(OBJS)
24 <        @echo "Linking $<"
23 > ALL: $(FOLDERS) $(DEST) $(OBJS)
24 >        @echo "Linking"
25          $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBS)
26  
27   clean:
28          rm $(DEST)
29 +        rm -R $(FOLDERS)
30          rm $(OUT)
31  
32 + $(FOLDERS):
33 +        mkdir -p build/$@
34 +
35   build/%.o: src/%.c
36          @echo "Compiling $<"
37          $(LOCALE) $(GCC) $(GCCFLAGS) -c -o $@ $<

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)