summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 8956e95c0ab5db5ba4870fc32b550a7acd7f982f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 0169 - Don't warn about unused functions, they are called from libglade
# 0219 - Constructs like Gtk.TreeIter iter = new Gtk.TreeIter();
CSC = mcs -nowarn:0169,0219 -debug

TARGET = gfax.exe
WRAPPER = gfax
SCHEMA = $(top_srcdir)/data/gfax.schemas.in

#CSFLAGS = -define:DEBUGEFAX
#CSFLAGS = -define:DEBUGHYLAFAX
#CSFLAGS =

ASSEMBLIES = -r:Mono.Posix

RESOURCES = \
	-resource:$(top_srcdir)/glade/gfax.glade,gfax.glade \
	-resource:$(top_srcdir)/glade/send-druid.glade,send-druid.glade

CSFILES = efax.cs 		\
	fax.cs 	\
	gui.cs 	\
	gfaxprefs.cs \
	gfaxsend.cs \
	gfaxphonebook.cs \
	newphonebook.cs \
	guitools.cs 	\
	hylafax.cs	\
	main.cs 		\
	phonebook.cs 		\
	evolution.cs 	\
	sendphonebook.cs 
	

GENERATED_CSFILES = Defines.cs Settings.cs

Defines.cs: Defines.cs.in ../config.log
	sed -e "s|\@version\@|$(VERSION)|" \
	    -e "s|\@datadir\@|$(datadir)|" \
		-e "s|\@eprefix\@|$(eprefix)|" \
	    < Defines.cs.in > Defines.cs

Settings.cs: Settings.cs
	env GCONF_CONFIG_SOURCE="" gconftool-2 --makefile-install-rule $(SCHEMA); \
	gconfsharp2-schemagen gfax $(SCHEMA) > $(srcdir)/Settings.cs

gfax.exe: $(CSFILES) $(GENERATED_CSFILES)
	$(CSC) $(CSFLAGS) $(GFAX_LIBS) $(ASSEMBLIES) $(RESOURCES) $(CSFILES) $(GENERATED_CSFILES) -o $@ 

all: gfax.exe

install-data-local: $(TARGET)
	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
	$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(pkglibdir)/$(TARGET)

uninstall-local:
	rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)

EXTRA_DIST =            		\
	$(srcdir)/Defines.cs.in		\
	$(CSFILES)      			


CLEANFILES =	\
	gfax.exe	\
	Defines.cs	\
	Settings.cs