Makefile targets for editors and for resources (still needs refinement)
This commit is contained in:
66
makefile
66
makefile
@@ -10,6 +10,8 @@ LIB=/usr/local/lib
|
||||
boost_lib=-lboost_filesystem -lboost_system -L$LIB
|
||||
boost_include=-I/usr/local/include/boost
|
||||
|
||||
all: game pced scened
|
||||
|
||||
obj/gzstream.o: src/tools/gzstream/gzstream.cpp src/tools/gzstream/gzstream.h
|
||||
$(CC) -c $(CINCLUDES) -o $@ $< $(CFLAGS)
|
||||
|
||||
@@ -55,31 +57,47 @@ obj/scen.%.o: src/scenedit/scen.%.mm
|
||||
obj/common.o: obj/gzstream.o obj/oldstructs.o $(COMMON_SRC)
|
||||
ld -r $^ -o obj/common.o
|
||||
|
||||
game: obj/common.o $(BOE_SRC)
|
||||
$(CC) $(CFLAGS) $(CINCLUDES) $^ -o exe/boe $(LIBFLAGS)
|
||||
|
||||
#main: $(SRCS)
|
||||
# $(CC) $(CFLAGS) -c $(SRC) -o objs $(OBJS) $(LIBFLAGS)
|
||||
exe/bin/boe: obj/common.o $(BOE_SRC)
|
||||
$(CC) $(CFLAGS) $(CINCLUDES) $^ -o exe/bin/boe $(LIBFLAGS)
|
||||
|
||||
#.cpp.o:
|
||||
# $(CC) $(CFLAGS) $< -o $@
|
||||
exe/bin/pced: obj/common.o $(PC_SRC)
|
||||
$(CC) $(CFLAGS) $(CINCLUDES) $^ -o exe/bin/pced $(LIBFLAGS)
|
||||
|
||||
exe/bin/scened: obj/common.o $(ED_SRC)
|
||||
$(CC) $(CFLAGS) $(CINCLUDES) $^ -o exe/bin/scened $(LIBFLAGS)
|
||||
|
||||
game: exe/bin/boe resources
|
||||
|
||||
pced: exe/bin/pced resources
|
||||
|
||||
scened: exe/bin/scened resources
|
||||
|
||||
resources: sounds.exa graphics.exd strings dialogs fonts scenarios shaders
|
||||
|
||||
shaders: src/tools/mask.vert src/tools/mask.frag
|
||||
mkdir -p 'exe/Blades of Exile/data/shaders'
|
||||
cp -fp src/tools/mask.* 'exe/Blades of Exile/data/shaders/'
|
||||
|
||||
sounds.exa:
|
||||
cp -Rfp rsrc/sounds.exa 'exe/Blades of Exile/Scenario Editor/'
|
||||
|
||||
graphics.exd:
|
||||
cp -Rfp rsrc/graphics.exd 'exe/Blades of Exile/Scenario Editor/'
|
||||
|
||||
strings:
|
||||
cp -Rfp rsrc/strings/ 'exe/Blades of Exile/data/'
|
||||
|
||||
dialogs:
|
||||
mkdir -p 'exe/Blades of Exile/data/dialogs'
|
||||
cp -fp rsrc/dialogs/*.xml 'exe/Blades of Exile/data/dialogs/'
|
||||
|
||||
fonts:
|
||||
cp -Rfp rsrc/fonts/ 'exe/Blades of Exile/data/'
|
||||
|
||||
scenarios:
|
||||
cp -fp 'rsrc/Blades of Exile Scenarios'/*.{exs,meg} 'exe/Blades of Exile/Blades of Exile Scenarios/'
|
||||
cp -fp 'rsrc/Blades of Exile Bases'/*.exs 'exe/Blades of Exile/Scenario Editor/Blades of Exile Base'
|
||||
|
||||
clean:
|
||||
\rm obj/*.o
|
||||
|
||||
#all: $(SRCS) $(TGT)
|
||||
# $(CC) $(CPPFLAGS) $(LDFLAGS) -o $(OBJS) $(LIBFLAGS)
|
||||
#$(TGT): $(OBJS)
|
||||
# $(CC) $(CPPFLAGS) $(LDFLAGS) -o $(OBJS) $(LIBFLAGS)
|
||||
# $(CC) $(OBJS) -o $@
|
||||
|
||||
|
||||
#all: clean common mac win unx
|
||||
#mac: mac_game mac_scen mac_ched
|
||||
#win: win_game win_scen win_ched
|
||||
#unx: unx_game unx_scen unx_ched
|
||||
|
||||
#common: $(OBJS)
|
||||
# $(CPP) $(CPPFLAGS) -o tool $(OBJS) $(LIBFLAGS)
|
||||
|
||||
rm -rf obj exe/bin
|
||||
|
||||
|
Reference in New Issue
Block a user