more simplification, got gtk.c under 3k lines
[gcalctool.git] / gcalctool / Makefile.am
blob1eca2f56db55469f7485776fe7e17ac550e71e3d
1 ## Process this file with automake to produce Makefile.in
3 INCLUDES = \
4         -I$(includedir) \
5         $(DISABLE_DEPRECATED) \
6         -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
7         -DPACKAGE_GLADE_DIR=\""$(datadir)/gcalctool"\" \
8         -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
9         -DPACKAGE_PIXMAP_DIR=\""$(prefix)/$(DATADIRNAME)/pixmaps"\" \
10         $(PACKAGE_CFLAGS) \
11         $(GNOME_UTILS_CFLAGS) \
12         $(GCONF_CFLAGS)
14 bin_PROGRAMS = gcalctool
16 gcalctool_SOURCES = \
17         calctool.c \
18         calctool.h \
19         display.c \
20         display.h \
21         dsfuns.c \
22         dsdefs.h \
23         get.c \
24         get.h \
25         functions.c \
26         functions.h \
27         mp.c \
28         mp.h \
29         mpmath.c \
30         mpmath.h \
31         parser.c \
32         parser.h \
33         parser_mac.h \
34         gtk.c \
35         ui.h \
36         ce_parser.c \
37         ce_parser.h \
38         ce_parser.tab.h \
39         lr_parser.c \
40         lr_parser.h \
41         lr_parser.tab.h
43 gcalctool_LDADD = \
44         $(PACKAGE_LIBS) \
45         $(GNOME_UTILS_LIBS) \
46         $(GCONF_LIBS) \
47         libparser.a
49 libparser.a: \
50         lex.ce.o\
51         lex.lr.o\
52         ce_parser.tab.o\
53         lr_parser.tab.o\
54         ce_parser.o\
55         lr_parser.o
56         $(AR) r libparser.a $^
57         $(RANLIB) libparser.a
59 ce_parser.o: ce_parser.c ce_parser.h
60         $(COMPILE) -c $(INCLUDES) -o $@ $(srcdir)/ce_parser.c
62 lr_parser.o: lr_parser.c lr_parser.h
63         $(COMPILE) -c $(INCLUDES) -o $@ $(srcdir)/lr_parser.c
65 lex.ce.o: lex.ce.c
66         $(COMPILE) -c $(INCLUDES) -o $@ $^
68 lex.lr.o: lex.lr.c
69         $(COMPILE) -c $(INCLUDES) -o $@ $^
71 ce_parser.tab.o: ce_parser.tab.c
72         $(COMPILE) -c $(INCLUDES) -o $@ $^
74 ce_parser.tab.c: ce_parser.y
75         bison -d -p ce -d $(srcdir)/ce_parser.y
77 lr_parser.tab.o: lr_parser.tab.c
78         $(COMPILE) -c $(INCLUDES) -o $@ $^
80 lr_parser.tab.c: lr_parser.y
81         bison -d -p lr $(srcdir)/lr_parser.y
83 lex.ce.c: ce_parser.tab.c ce_tokeniser.l
84         $(LEX) -Pce $(srcdir)/ce_tokeniser.l
86 lex.lr.c: lr_parser.tab.c lr_tokeniser.l
87         $(LEX) -i -Plr $(srcdir)/lr_tokeniser.l
89 code-format: 
90         ls *[ch] | xargs indent -nbad -bap -bbo -nbc -br\
91         -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 \
92         -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs\
93         -nprs -npsl -nut -saf -sai -saw -nsc -nsob -nss
95 man1_MANS = gcalctool.1
97 # Install a symlink between gcalctool and gnome-calculator
98 install-exec-hook:
99         test -e "$(DESTDIR)$(bindir)/gnome-calculator" \
100         || (cd "$(DESTDIR)$(bindir)" && ln -s gcalctool gnome-calculator)
102 # Remove the symlink between gcalctool and gnome-calculator
103 uninstall-local:
104         test -h "$(DESTDIR)$(bindir)/gnome-calculator" \
105         && rm -f "$(DESTDIR)$(bindir)/gnome-calculator"
107 EXTRA_DIST = \
108         $(man1_MANS) \
109         ce_parser.y \
110         ce_tokeniser.l \
111         lr_parser.y \
112         lr_tokeniser.l