More binary-bundling removal
[pdfmod:pdfmod.git] / src / Makefile.am
1
2 # Warning: This is an automatically generated file, do not edit!
3 #
4 EXTRA_DIST =
5
6 if ENABLE_DEBUG
7 ASSEMBLY_COMPILER_COMMAND = $(MCS)
8 ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+ -debug "-define:DEBUG"
9 ASSEMBLY = ../bin/PdfMod.exe
10 ASSEMBLY_MDB = $(ASSEMBLY).mdb
11 COMPILE_TARGET = exe
12 PROJECT_REFERENCES = \
13         ../bin/PdfSharp.dll
14 BUILD_DIR = ../bin
15
16 PDFSHARP_DLL_SOURCE=../bin/PdfSharp.dll
17 PDFSHARP_DLL_MDB_SOURCE=../bin/PdfSharp.dll.mdb
18 POPPLER_SHARP_DLL_SOURCE=../lib/poppler-sharp/poppler-sharp/poppler-sharp.dll
19 POPPLER_SHARP_DLL_CONFIG_SOURCE=../lib/poppler-sharp/poppler-sharp/poppler-sharp.dll.config
20 PDFMOD_EXE_MDB_SOURCE=../bin/PdfMod.exe.mdb
21
22 endif
23
24 if ENABLE_RELEASE
25 ASSEMBLY_COMPILER_COMMAND = $(MCS)
26 ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
27 ASSEMBLY = ../bin/PdfMod.exe
28 ASSEMBLY_MDB = $(ASSEMBLY).mdb
29 COMPILE_TARGET = exe
30 PROJECT_REFERENCES =  \
31         ../bin/PdfSharp.dll
32 BUILD_DIR = ../bin
33
34 PDFSHARP_DLL_SOURCE=../bin/PdfSharp.dll
35 PDFSHARP_DLL_MDB_SOURCE=../bin/PdfSharp.dll.mdb
36 POPPLER_SHARP_DLL_SOURCE=../lib/poppler-sharp/poppler-sharp/poppler-sharp.dll
37 POPPLER_SHARP_DLL_CONFIG_SOURCE=../lib/poppler-sharp/poppler-sharp/poppler-sharp.dll.config
38 PDFMOD_EXE_MDB_SOURCE=../bin/PdfMod.exe.mdb
39
40 endif
41
42 AL=al2
43 SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll
44
45 PROGRAMFILES = \
46         $(PDFSHARP_DLL) \
47         $(PDFSHARP_DLL_MDB) \
48         $(POPPLER_SHARP_DLL) \
49         $(POPPLER_SHARP_DLL_CONFIG) \
50         $(PDFMOD_EXE_MDB)  
51
52 BINARIES = \
53         $(PDFMOD)  
54
55
56 RESGEN=resgen2
57         
58 all: $(ASSEMBLY) $(PROGRAMFILES) $(BINARIES) 
59
60 FILES =  \
61         PdfMod/Core/AssemblyInfo.cs \
62         PdfMod/Core/Client.cs \
63         PdfMod/Core/Configuration.cs \
64         PdfMod/Core/Defines.cs \
65         PdfMod/Gui/Actions.cs \
66         PdfMod/Gui/CairoCell.cs \
67         PdfMod/Gui/Client.cs \
68         PdfMod/Gui/DocumentIconView.cs \
69         PdfMod/Gui/MetadataEditorBox.cs \
70         PdfMod/Gui/PageCell.cs \
71         PdfMod/Gui/PageListStore.cs \
72         PdfMod/Gui/SelectMatchingBox.cs \
73         PdfMod/Main.cs \
74         PdfMod/Pdf/Actions/BasePageAction.cs \
75         PdfMod/Pdf/Actions/ExportImagesAction.cs \
76         PdfMod/Pdf/Actions/MoveAction.cs \
77         PdfMod/Pdf/Actions/RemoveAction.cs \
78         PdfMod/Pdf/Actions/RotateAction.cs \
79         PdfMod/Pdf/Document.cs \
80         PdfMod/Pdf/Page.cs \
81         PdfMod/Pdf/PageLabels.cs \
82         PdfMod/Pdf/PageThumbnail.cs 
83
84 DATA_FILES = 
85
86 RESOURCES = Resources/UIManager.xml 
87
88 EXTRAS = \
89         pdfmod.in 
90
91 REFERENCES =  \
92         Mono.Cairo \
93         Mono.Posix \
94         -pkg:gconf-sharp-2.0 \
95         -pkg:glib-sharp-2.0 \
96         -pkg:gnome-sharp-2.0 \
97         -pkg:gtk-sharp-2.0 \
98         System \
99         System.Core
100
101 DLL_REFERENCES =  \
102         $(BUILD_DIR)/poppler-sharp.dll \
103         $(BUILD_DIR)/Hyena.dll \
104         $(BUILD_DIR)/Hyena.Gui.dll
105
106 CLEANFILES = $(PROGRAMFILES) $(BINARIES)
107
108 include $(top_srcdir)/Makefile.include
109
110 PDFSHARP_DLL = $(BUILD_DIR)/PdfSharp.dll
111 PDFSHARP_DLL_MDB = $(BUILD_DIR)/PdfSharp.dll.mdb
112 POPPLER_SHARP_DLL = $(BUILD_DIR)/poppler-sharp.dll
113 POPPLER_SHARP_DLL_CONFIG = $(BUILD_DIR)/poppler-sharp.dll.config
114 PDFMOD_EXE_MDB = $(BUILD_DIR)/PdfMod.exe.mdb
115 PDFMOD = $(BUILD_DIR)/pdfmod
116
117 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL))
118 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL_CONFIG))
119 $(eval $(call emit-deploy-wrapper,PDFMOD,pdfmod,x))
120
121
122 $(eval $(call emit_resgen_targets))
123 $(build_xamlg_list): %.xaml.g.cs: %.xaml
124         xamlg '$<'
125
126 $(ASSEMBLY_MDB): $(ASSEMBLY)
127
128 $(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
129         mkdir -p $(shell dirname $(ASSEMBLY))
130         cp -t $(BUILD_DIR) $(BUNDLE_ASSEMBLIES)
131         cp -t $(BUILD_DIR) $(BUNDLE_FILES)
132         $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)