added makefile support for our mods
This commit is contained in:
10
.gitignore
vendored
10
.gitignore
vendored
@@ -19,7 +19,9 @@ log.txt
|
|||||||
|
|
||||||
/replay.rep
|
/replay.rep
|
||||||
|
|
||||||
# dependency DLLs (different for every platform!)
|
/*.dll
|
||||||
cg.dll
|
*.mdb
|
||||||
cgGL.dll
|
/*.exe
|
||||||
glfw.dll
|
|
||||||
|
# backup files by various editors
|
||||||
|
*~
|
||||||
|
|||||||
36
Makefile
36
Makefile
@@ -1,14 +1,10 @@
|
|||||||
CSC = gmcs
|
CSC = gmcs
|
||||||
|
|
||||||
CSFLAGS = -nologo -warn:4 -debug:+ -debug:full -optimize- -codepage:utf8 -unsafe
|
CSFLAGS = -nologo -warn:4 -debug:+ -debug:full -optimize- -codepage:utf8 -unsafe
|
||||||
|
|
||||||
DEFINE = DEBUG;TRACE
|
DEFINE = DEBUG;TRACE
|
||||||
|
|
||||||
RESC = resgen2
|
|
||||||
|
|
||||||
default: OpenRa.Game.exe
|
default: OpenRa.Game.exe
|
||||||
|
|
||||||
PROGRAMS = fileformats gl game
|
PROGRAMS = fileformats gl game ra cnc aftermath
|
||||||
|
|
||||||
COMMON_LIBS := System.dll System.Core.dll System.Drawing.dll System.Xml.dll
|
COMMON_LIBS := System.dll System.Core.dll System.Drawing.dll System.Xml.dll
|
||||||
|
|
||||||
@@ -31,7 +27,27 @@ game_KIND := winexe
|
|||||||
game_LIBS := $(COMMON_LIBS) System.Windows.Forms.dll $(fileformats_TARGET) $(gl_TARGET) \
|
game_LIBS := $(COMMON_LIBS) System.Windows.Forms.dll $(fileformats_TARGET) $(gl_TARGET) \
|
||||||
thirdparty/Tao/Tao.OpenAl.dll
|
thirdparty/Tao/Tao.OpenAl.dll
|
||||||
game_DEPS := $(fileformats_TARGET) $(gl_TARGET)
|
game_DEPS := $(fileformats_TARGET) $(gl_TARGET)
|
||||||
game_FLAGS := -win32icon:OpenRa.Game/OpenRa.ico -platform:x86
|
game_FLAGS := -win32icon:OpenRa.Game/OpenRa.ico
|
||||||
|
|
||||||
|
ra_SRCS := $(shell find OpenRa.Mods.RA/ -iname '*.cs')
|
||||||
|
ra_TARGET := mods/ra/OpenRa.Mods.RA.dll
|
||||||
|
ra_KIND := library
|
||||||
|
ra_LIBS := $(COMMON_LIBS) $(fileformats_TARGET) $(game_TARGET)
|
||||||
|
ra_DEPS := $(fileformats_TARGET) $(game_TARGET)
|
||||||
|
|
||||||
|
cnc_SRCS := $(shell find OpenRa.Mods.Cnc/ -iname '*.cs')
|
||||||
|
cnc_TARGET := mods/cnc/OpenRa.Mods.Cnc.dll
|
||||||
|
cnc_KIND := library
|
||||||
|
cnc_LIBS := $(COMMON_LIBS) $(fileformats_TARGET) $(game_TARGET)
|
||||||
|
cnc_DEPS := $(fileformats_TARGET) $(game_TARGET)
|
||||||
|
|
||||||
|
aftermath_SRCS := $(shell find OpenRa.Mods.Aftermath/ -iname '*.cs')
|
||||||
|
aftermath_TARGET := mods/cnc/OpenRa.Mods.Aftermath.dll
|
||||||
|
aftermath_KIND := library
|
||||||
|
aftermath_LIBS := $(COMMON_LIBS) $(fileformats_TARGET) $(game_TARGET)
|
||||||
|
aftermath_DEPS := $(fileformats_TARGET) $(game_TARGET)
|
||||||
|
|
||||||
|
# -platform:x86
|
||||||
|
|
||||||
define BUILD_ASSEMBLY
|
define BUILD_ASSEMBLY
|
||||||
$$($(1)_TARGET): $$($(1)_SRCS) Makefile $$($(1)_DEPS)
|
$$($(1)_TARGET): $$($(1)_SRCS) Makefile $$($(1)_DEPS)
|
||||||
@@ -46,7 +62,11 @@ endef
|
|||||||
$(foreach prog,$(PROGRAMS),$(eval $(call BUILD_ASSEMBLY,$(prog))))
|
$(foreach prog,$(PROGRAMS),$(eval $(call BUILD_ASSEMBLY,$(prog))))
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.PHONY: clean all default
|
.PHONY: clean all default mods
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@-rm *.exe *.dll *.mdb
|
@-rm *.exe *.dll *.mdb mods/**/*.dll mods/**/*.mdb
|
||||||
|
|
||||||
|
mods: $(ra_TARGET) $(cnc_TARGET) $(aftermath_TARGET)
|
||||||
|
|
||||||
|
all: default mods
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 264 KiB |
Reference in New Issue
Block a user