1 ###/* This file is part of
2 ###* ======================================================
4 ###* LyX, the High Level Word Processor
6 ###* Copyright (C) 1995-99 The LyX Team
8 ###*======================================================*/
11 ### Makefile by Lars Gullik Bjønnes (larsbj@ifi.uio.no)
20 SRCS = bullet_forms.fd cite.fd credits_form.fd form1.fd \
21 latexoptions.fd layout_forms.fd lyx.fd lyx_sendfax.fd math_forms.fd \
22 print_form.fd sp_form.fd
24 OBJS = bullet_forms.c cite.c credits_form.c form1.c \
25 latexoptions.c layout_forms.c lyx.c lyx_sendfax.c math_forms.c \
26 print_form.c sp_form.c
28 COBJS = bullet_forms.C cite.C credits_form.C form1.C \
29 latexoptions.C layout_forms.C lyx.C lyx_sendfax.C math_forms.C \
30 print_form.C sp_form.C
33 @echo "This is a makefile intended for the maintainer only."
34 @echo "Only run it if you are absolutely sure about what you"
42 # -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/'
44 # We need the callbacks to all be declared as: extern "C" void
47 for hfil in *.h ; do \
48 if [ -f "$$hfil.patch" ] ; then \
49 (echo "Patching $$hfil with $$hfil.patch" ; \
50 patch -s $$hfil < $$hfil.patch) \
52 sed < $$hfil > $$hfil.tmp \
53 -e 's/\(extern\) \(void.*FL_OBJECT\)/\1 "C" \2/' ; \
54 mv $$hfil.tmp $$hfil; \
59 @echo "Beware some files may be installed in the wrong directory!" >&2
60 @echo "In particular be careful with gui-indep forms. Make sure">&2
61 @echo "they have been removed from the files here otherwise we'll">&2
62 @echo "get junk code and errors at compile time.">&2
63 for fil in *.C *.h ; do \
64 if [ $$fil = "math_forms.C" -o $$fil = "math_forms.h" ]; then \
65 cp $$fil ../src/mathed ; \
72 $(FDESIGN) -convert $<