Moved 3 rc promotion keywords from gschem into libgeda (fix for bug#1748143)
[geda-gaf/peter-b.git] / gschem / src / Makefile.am
blobf99ee9200c80a671136c858d5fa0c493bae8237a
2 # NOTE: Don't forget that in the libtool distribution, files in this
3 # directory are distributed by the demo_distfiles variable in the top
4 # level Makefile.
7 bin_PROGRAMS = gschem
9 gschem_SOURCES = \
10         a_pan.c a_zoom.c \
11         g_register.c g_hook.c\
12         g_rc.c g_keys.c g_funcs.c \
13         globals.c gschem.c \
14         i_basic.c i_callbacks.c i_vars.c \
15         o_basic.c o_attrib.c o_move.c o_copy.c o_delete.c o_misc.c \
16         o_slot.c o_grips.c \
17         o_arc.c o_box.c o_circle.c o_complex.c o_select.c o_find.c \
18         o_line.c o_net.c o_text.c o_pin.c o_bus.c o_buffer.c o_undo.c \
19         o_picture.c \
20         x_autonumber.c x_basic.c x_dialog.c \
21         x_event.c x_grid.c x_log.c x_menus.c x_script.c \
22         x_pagesel.c x_print.c x_window.c x_stroke.c x_image.c x_color.c \
23         x_compselect.c x_fileselect.c x_preview.c x_attribedit.c \
24         x_multiattrib.c \
25         parsecmd.c o_cue.c \
26         gschem_dialog.c
28 if CCISGCC
29 AM_CFLAGS = -Wall
30 endif
32 INCLUDES = -I$(prefix)/include -I$(top_srcdir)/intl -I$(top_srcdir)/include @GSCHEM_CFLAGS@
33 gschem_LDADD = -L$(prefix)/lib @GSCHEM_LDFLAGS@ @LIBINTL@
35 localedir = @datadir@/locale
36 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
38 #man_MANS = gschem.1
39 EXTRA_DIST = create_proto rcstrings.c
40 #gschem.1
42 src: $(gschem_SOURCES)
43         @echo Finished building the C source
45 CPROTO =        cproto
46 CPROTOCFLAGS =  $(INCLUDES) -I. -I.. -I../include
47 ALES_HACK =     -D__GNUC__
49 proto: prototype.h
51 prototype.h: $(gschem_SOURCES)
52         $(CPROTO) $(ALES_HACK) $(CPROTOCFLAGS) *.c > new_proto
53         mv new_proto ../include/prototype.h
55 potfiles:
56         rm -f po/$(PACKAGE).pot
57         @mv -f po/POTFILES.in po/POTFILES.in~ ; true
58         grep '\([^A-Za-z0-9_]_(\)\|\(^_(\)\|\(gettext[[:blank:]]*(\)' \
59         *.c | cut -d: -f1 | sort -u >po/POTFILES.in
60         $(MAKE)
62 MOSTLYCLEANFILES = *.log core FILE *~ prototype.bak
63 CLEANFILES = *.log core FILE *~ prototype.bak
64 DISTCLEANFILES = *.log core FILE *~ prototype.bak
65 MAINTAINERCLEANFILES = *.log core FILE *~ prototype.bak prototype.h \
66                         Makefile.in configure