Fix another minor parallel make issue
[pdfmod:bl8s-clone.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 = ../bin/PdfSharp.dll
13 BUILD_DIR = ../bin
14
15 PDFSHARP_DLL_SOURCE=../bin/PdfSharp.dll
16 PDFSHARP_DLL_MDB_SOURCE=../bin/PdfSharp.dll.mdb
17 HYENA_DLL_SOURCE=../lib/Hyena.dll
18 HYENA_DLL_MDB_SOURCE=../lib/Hyena.dll.mdb
19 MONO_DATA_SQLITE_DLL_SOURCE=../lib/Mono.Data.Sqlite.dll
20 MONO_DATA_SQLITE_DLL_MDB_SOURCE=../lib/Mono.Data.Sqlite.dll.mdb
21 HYENA_GUI_DLL_SOURCE=../lib/Hyena.Gui.dll
22 HYENA_GUI_DLL_CONFIG_SOURCE=../lib/Hyena.Gui.dll.config
23 HYENA_GUI_DLL_MDB_SOURCE=../lib/Hyena.Gui.dll.mdb
24 POPPLER_SHARP_DLL_SOURCE=../lib/poppler-sharp.dll
25 POPPLER_SHARP_DLL_CONFIG_SOURCE=../lib/poppler-sharp.dll.config
26 PDFMOD_EXE_MDB_SOURCE=../bin/PdfMod.exe.mdb
27
28 endif
29
30 if ENABLE_RELEASE
31 ASSEMBLY_COMPILER_COMMAND = $(MCS)
32 ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
33 ASSEMBLY = ../bin/PdfMod.exe
34 ASSEMBLY_MDB = $(ASSEMBLY).mdb
35 COMPILE_TARGET = exe
36 PROJECT_REFERENCES =  \
37         ../bin/PdfSharp.dll
38 BUILD_DIR = ../bin
39
40 PDFSHARP_DLL_SOURCE=../bin/PdfSharp.dll
41 PDFSHARP_DLL_MDB_SOURCE=../bin/PdfSharp.dll.mdb
42 HYENA_DLL_SOURCE=../lib/Hyena.dll
43 HYENA_DLL_MDB_SOURCE=../lib/Hyena.dll.mdb
44 MONO_DATA_SQLITE_DLL_SOURCE=../lib/Mono.Data.Sqlite.dll
45 MONO_DATA_SQLITE_DLL_MDB_SOURCE=../lib/Mono.Data.Sqlite.dll.mdb
46 HYENA_GUI_DLL_SOURCE=../lib/Hyena.Gui.dll
47 HYENA_GUI_DLL_CONFIG_SOURCE=../lib/Hyena.Gui.dll.config
48 HYENA_GUI_DLL_MDB_SOURCE=../lib/Hyena.Gui.dll.mdb
49 POPPLER_SHARP_DLL_SOURCE=../lib/poppler-sharp.dll
50 POPPLER_SHARP_DLL_CONFIG_SOURCE=../lib/poppler-sharp.dll.config
51 PDFMOD_EXE_MDB_SOURCE=../bin/PdfMod.exe.mdb
52
53 endif
54
55 AL=al2
56 SATELLITE_ASSEMBLY_NAME=$(notdir $(basename $(ASSEMBLY))).resources.dll
57
58 PROGRAMFILES = \
59         $(PDFSHARP_DLL) \
60         $(PDFSHARP_DLL_MDB) \
61         $(HYENA_DLL) \
62         $(HYENA_DLL_MDB) \
63         $(MONO_DATA_SQLITE_DLL) \
64         $(MONO_DATA_SQLITE_DLL_MDB) \
65         $(HYENA_GUI_DLL) \
66         $(HYENA_GUI_DLL_CONFIG) \
67         $(HYENA_GUI_DLL_MDB) \
68         $(POPPLER_SHARP_DLL) \
69         $(POPPLER_SHARP_DLL_CONFIG) \
70         $(PDFMOD_EXE_MDB)  
71
72 BINARIES = \
73         $(PDFMOD)  
74
75
76 RESGEN=resgen2
77         
78 all: $(ASSEMBLY) $(PROGRAMFILES) $(BINARIES) 
79
80 FILES =  \
81         PdfMod/Core/AssemblyInfo.cs \
82         PdfMod/Core/Client.cs \
83         PdfMod/Core/Configuration.cs \
84         PdfMod/Core/Defines.cs \
85         PdfMod/Gui/Actions.cs \
86         PdfMod/Gui/CairoCell.cs \
87         PdfMod/Gui/Client.cs \
88         PdfMod/Gui/DocumentIconView.cs \
89         PdfMod/Gui/MetadataEditorBox.cs \
90         PdfMod/Gui/PageCell.cs \
91         PdfMod/Gui/PageListStore.cs \
92         PdfMod/Gui/SelectMatchingBox.cs \
93         PdfMod/Main.cs \
94         PdfMod/Pdf/Actions/BasePageAction.cs \
95         PdfMod/Pdf/Actions/ExportImagesAction.cs \
96         PdfMod/Pdf/Actions/MoveAction.cs \
97         PdfMod/Pdf/Actions/RemoveAction.cs \
98         PdfMod/Pdf/Actions/RotateAction.cs \
99         PdfMod/Pdf/Document.cs \
100         PdfMod/Pdf/Page.cs \
101         PdfMod/Pdf/PageLabels.cs \
102         PdfMod/Pdf/PageThumbnail.cs 
103
104 DATA_FILES = 
105
106 RESOURCES = Resources/UIManager.xml 
107
108 EXTRAS = \
109         pdfmod.in 
110
111 REFERENCES =  \
112         Mono.Cairo \
113         Mono.Posix \
114         -pkg:gconf-sharp-2.0 \
115         -pkg:glib-sharp-2.0 \
116         -pkg:gnome-sharp-2.0 \
117         -pkg:gtk-sharp-2.0 \
118         System \
119         System.Core
120
121 DLL_REFERENCES =  \
122         ../lib/Hyena.dll \
123         ../lib/Hyena.Gui.dll \
124         ../lib/Mono.Data.Sqlite.dll \
125         ../lib/poppler-sharp.dll
126
127 CLEANFILES = $(PROGRAMFILES) $(BINARIES)
128
129 include $(top_srcdir)/Makefile.include
130
131 PDFSHARP_DLL = $(BUILD_DIR)/PdfSharp.dll
132 PDFSHARP_DLL_MDB = $(BUILD_DIR)/PdfSharp.dll.mdb
133 HYENA_DLL = $(BUILD_DIR)/Hyena.dll
134 HYENA_DLL_MDB = $(BUILD_DIR)/Hyena.dll.mdb
135 MONO_DATA_SQLITE_DLL = $(BUILD_DIR)/Mono.Data.Sqlite.dll
136 MONO_DATA_SQLITE_DLL_MDB = $(BUILD_DIR)/Mono.Data.Sqlite.dll.mdb
137 HYENA_GUI_DLL = $(BUILD_DIR)/Hyena.Gui.dll
138 HYENA_GUI_DLL_CONFIG = $(BUILD_DIR)/Hyena.Gui.dll.config
139 HYENA_GUI_DLL_MDB = $(BUILD_DIR)/Hyena.Gui.dll.mdb
140 POPPLER_SHARP_DLL = $(BUILD_DIR)/poppler-sharp.dll
141 POPPLER_SHARP_DLL_CONFIG = $(BUILD_DIR)/poppler-sharp.dll.config
142 PDFMOD_EXE_MDB = $(BUILD_DIR)/PdfMod.exe.mdb
143 PDFMOD = $(BUILD_DIR)/pdfmod
144
145 $(eval $(call emit-deploy-target,HYENA_DLL))
146 $(eval $(call emit-deploy-target,HYENA_DLL_MDB))
147 $(eval $(call emit-deploy-target,MONO_DATA_SQLITE_DLL))
148 $(eval $(call emit-deploy-target,MONO_DATA_SQLITE_DLL_MDB))
149 $(eval $(call emit-deploy-target,HYENA_GUI_DLL))
150 $(eval $(call emit-deploy-target,HYENA_GUI_DLL_CONFIG))
151 $(eval $(call emit-deploy-target,HYENA_GUI_DLL_MDB))
152 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL))
153 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL_CONFIG))
154 $(eval $(call emit-deploy-wrapper,PDFMOD,pdfmod,x))
155
156
157 $(eval $(call emit_resgen_targets))
158 $(build_xamlg_list): %.xaml.g.cs: %.xaml
159         xamlg '$<'
160
161 $(ASSEMBLY_MDB): $(ASSEMBLY)
162
163 $(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
164         mkdir -p $(shell dirname $(ASSEMBLY))
165         $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)