summaryrefslogtreecommitdiff
path: root/support/C++2LaTeX-1_1pl1/Makefile
blob: f154512af1b68b9090d4d71685ea5375f77ac88b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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