1bin_PROGRAMS = gschem
2
3BUILT_SOURCES = \
4	g_attrib.x \
5	g_hook.x \
6	g_keys.x \
7	g_util.x \
8	g_window.x \
9	g_select.x
10
11gschem_SOURCES = \
12	a_pan.c \
13	a_zoom.c \
14	g_attrib.c \
15	g_funcs.c \
16	g_hook.c \
17	g_keys.c \
18	g_rc.c \
19	g_register.c \
20	g_select.c \
21	g_util.c \
22	g_window.c \
23	globals.c \
24	gschem.c \
25	gschem_accel_label.c \
26	gschem_action.c \
27	gschem_cairo.c \
28	gschem_dialog.c \
29	gschem_pango.c \
30	gschem_toplevel.c \
31	i_basic.c \
32	i_callbacks.c \
33	i_vars.c \
34	m_basic.c \
35	o_arc.c \
36	o_attrib.c \
37	o_basic.c \
38	o_box.c \
39	o_buffer.c \
40	o_bus.c \
41	o_circle.c \
42	o_complex.c \
43	o_copy.c \
44	o_cue.c \
45	o_delete.c \
46	o_find.c \
47	o_grips.c \
48	o_line.c \
49	o_misc.c \
50	o_move.c \
51	o_net.c \
52	o_path.c \
53	o_picture.c \
54	o_pin.c \
55	o_place.c \
56	o_select.c \
57	o_slot.c \
58	o_text.c \
59	o_undo.c \
60	parsecmd.c \
61	s_stretch.c \
62	x_attribedit.c \
63	x_autonumber.c \
64	x_basic.c \
65	x_clipboard.c \
66	x_color.c \
67	x_compselect.c \
68	x_dialog.c \
69	x_event.c \
70	x_fileselect.c \
71	x_grid.c \
72	x_image.c \
73	x_log.c \
74	x_menus.c \
75	x_misc.c \
76	x_multiattrib.c \
77	x_pagesel.c \
78	x_preview.c \
79	x_print.c \
80	x_rc.c \
81	x_script.c \
82	x_stroke.c \
83	x_window.c
84
85gschem_CPPFLAGS = -I$(top_srcdir)/libgeda/include  -I$(srcdir)/../include \
86	-I$(top_srcdir) -I$(includedir) -I$(top_srcdir)/intl
87gschem_CFLAGS = $(GCC_CFLAGS) $(LIBSTROKE_CFLAGS) \
88	$(MINGW_CFLAGS) \
89	$(GLIB_CFLAGS) $(GTK_CFLAGS) $(GTHREAD_CFLAGS) $(GUILE_CFLAGS)
90gschem_LDFLAGS = $(LIBSTROKE_LDFLAGS) $(GLIB_LIBS) $(GTK_LIBS) \
91	$(GTHREAD_LIBS) $(GUILE_LIBS) $(MINGW_GUI_LDFLAGS)
92gschem_LDADD = $(top_builddir)/libgeda/src/libgeda.la @LIBINTL@
93
94
95# This is used to generate boilerplate for defining Scheme functions
96# in C.
97SUFFIXES = .x
98snarf_cpp_opts = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
99	$(gschem_CPPFLAGS) $(AM_CFLAGS) $(gschem_CFLAGS)
100.c.x:
101	CPP="$(CPP)" $(GUILE_SNARF) -o $@ $< $(snarf_cpp_opts)
102
103localedir = @datadir@/locale
104DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
105
106MOSTLYCLEANFILES = *.log core FILE *~
107CLEANFILES = *.log core FILE *~ $(BUILT_SOURCES)
108DISTCLEANFILES = *.log core FILE *~
109MAINTAINERCLEANFILES = *.log core FILE *~ Makefile.in
110