summaryrefslogtreecommitdiff
path: root/support/C++2LaTeX-1_1pl1/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/C++2LaTeX-1_1pl1/Makefile
Initial commit
Diffstat (limited to 'support/C++2LaTeX-1_1pl1/Makefile')
-rw-r--r--support/C++2LaTeX-1_1pl1/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/support/C++2LaTeX-1_1pl1/Makefile b/support/C++2LaTeX-1_1pl1/Makefile
new file mode 100644
index 0000000000..f154512af1
--- /dev/null
+++ b/support/C++2LaTeX-1_1pl1/Makefile
@@ -0,0 +1,30 @@
+FLAVOR =
+
+CC = gcc
+CFLAGS = -g $(FLAVOR)
+LEX = flex
+
+
+.PHONY: all workaround C_PLUSPLUS ANSI_C HAS_NAME
+
+all: c++2latex
+
+C_PLUSPLUS: make c++2latex FLAVOR=-DC_PLUSPLUS
+
+ANSI_C:
+ make c2latex FLAVOR=-DANSI_C
+
+USE_NAME:
+ make c++2latex FLAVOR=-DUSE_NAME
+
+workaround: c++2latex.l
+ mv -f c++2latex.l c++2latex.full
+ sed > c++2latex.l -e '/^###/w c++2latex.copyright' \
+ -e '/^###/d' c++2latex.full
+
+c2latex.c: c++2latex.c
+ mv c++2latex.c c2latex.c
+
+c++2latex: c++2latex.o getopt1.o getopt.o version.o
+
+c2latex: c2latex.o getopt1.o getopt.o version.o