diff --git a/Makefile b/Makefile index e6e74413b1..f9ce78a00b 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,7 @@ CSC = gmcs CSFLAGS = -nologo -warn:4 -debug:+ -debug:full -optimize- -codepage:utf8 -unsafe DEFINE = DEBUG;TRACE -default: OpenRa.Game.exe - -PROGRAMS = fileformats gl game ra cnc aftermath +PROGRAMS = fileformats gl game ra cnc aftermath server seqed COMMON_LIBS := System.dll System.Core.dll System.Drawing.dll System.Xml.dll @@ -16,9 +14,8 @@ fileformats_LIBS := $(COMMON_LIBS) gl_SRCS := $(shell find OpenRa.Gl/ -iname '*.cs') gl_TARGET := OpenRa.Gl.dll gl_KIND := library -gl_LIBS := $(COMMON_LIBS) System.Windows.Forms.dll System.Xml.Linq.dll \ - System.Data.DataSetExtensions.dll \ - System.Data.dll thirdparty/Tao/Tao.Cg.dll thirdparty/Tao/Tao.OpenGl.dll \ +gl_LIBS := $(COMMON_LIBS) System.Windows.Forms.dll \ + thirdparty/Tao/Tao.Cg.dll thirdparty/Tao/Tao.OpenGl.dll \ thirdparty/Tao/Tao.Platform.Windows.dll game_SRCS := $(shell find OpenRa.Game/ -iname '*.cs') @@ -47,6 +44,18 @@ aftermath_KIND := library aftermath_LIBS := $(COMMON_LIBS) $(fileformats_TARGET) $(game_TARGET) aftermath_DEPS := $(fileformats_TARGET) $(game_TARGET) +server_SRCS := $(shell find OpenRA.Server/ -iname '*.cs') +server_TARGET := OpenRA.Server.exe +server_KIND := winexe +server_LIBS := $(COMMON_LIBS) $(fileformats_TARGET) +server_DEPS := $(fileformats_TARGET) + +seqed_SRCS := $(shell find SequenceEditor/ -iname '*.cs') +seqed_TARGET := SequenceEditor.exe +seqed_KIND := winexe +seqed_LIBS := $(COMMON_LIBS) System.Windows.Forms.dll $(fileformats_TARGET) +seqed_DEPS := $(fileformats_TARGET) + # -platform:x86 define BUILD_ASSEMBLY @@ -62,11 +71,16 @@ endef $(foreach prog,$(PROGRAMS),$(eval $(call BUILD_ASSEMBLY,$(prog)))) .SUFFIXES: -.PHONY: clean all default mods +.PHONY: clean all default mods server seqed clean: @-rm *.exe *.dll *.mdb mods/**/*.dll mods/**/*.mdb mods: $(ra_TARGET) $(cnc_TARGET) $(aftermath_TARGET) - all: default mods + +server: $(server_TARGET) +seqed: $(seqed_TARGET) + all: clean server default mods seqed + +.DEFAULT: all