diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..893db14 --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,84 @@ + +ASSEMBLY_COMPILER_COMMAND = gmcs +ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug "-define:DEBUG" + "-main:FsGateway.FsGateway" + +ASSEMBLY_DIR = ../bin +ASSEMBLY = $(ASSEMBLY_DIR)/fsgateway.exe +ASSEMBLY_MDB = $(ASSEMBLY).mdb +COMPILE_TARGET = exe +PROJECT_REFERENCES = +BUILD_DIR = ../bin + +BINARIES = \ + $(FSGATEWAY) + +LIBFLAGS = \ + -r:System \ + -r:System.Data \ + -r:Npgsql \ + -r:Mono.Posix \ + -r:System.Xml \ + -pkg:mysql-connector-net \ + -pkg:mono-fuse + + +all: $(BINARIES) + +FILES = \ + AssemblyInfo.cs \ + DirAsTag.cs \ + Field.cs \ + FsDbManager.cs \ + FsGateway.cs \ + FsXml.cs \ + FuseWrapper.cs \ + IFsDb.cs \ + IFsGateway.cs \ + IFsModule.cs \ + Index.cs \ + OlpcMetadata.cs \ + Postgresql.cs \ + Sequence.cs \ + SugarDatastore.cs \ + Table.cs \ + View.cs \ + FsMySql.cs \ + FsSqlServer.cs \ + FsPostgresql.cs + +DATA_FILES = + +RESOURCES = + +EXTRAS = \ + fsgateway.in + + +CLEANFILES = $(PROGRAMFILES) $(BINARIES) + +FSGATEWAY = $(ASSEMBLY) + +MAIN = FsGateway.FsGateway + +$(eval $(call emit-deploy-wrapper,FSGATEWAY,fsgateway,x)) + +$(ASSEMBLY) $(ASSEMBLY_MDB): $(PROJECT_REFERENCES) $(FILES) + mkdir -p $(dir $(ASSEMBLY)) + $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) -main:$(MAIN) $(LIBFLAGS) $(FILES) + for ASM in $(INSTALLED_ASSEMBLIES); do \ + $(INSTALL) -c -m 0755 $$ASM $(ASSEMBLY_DIR); \ + done; + + +# Install Unstable Mono Libraries (see configure.ac) + +install-data-hook: + for ASM in $(INSTALLED_ASSEMBLIES); do \ + $(INSTALL) -c -m 0755 $$ASM $(DESTDIR)$(pkglibdir); \ + done; + +uninstall-hook: + for ASM in $(INSTALLED_ASSEMBLIES); do \ + rm -f $(DESTDIR)$(pkglibdir)/`basename $$ASM`; \ + done; |