summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/eepic/fig2eepic/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 /macros/latex/contrib/eepic/fig2eepic/makefile
Initial commit
Diffstat (limited to 'macros/latex/contrib/eepic/fig2eepic/makefile')
-rw-r--r--macros/latex/contrib/eepic/fig2eepic/makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/macros/latex/contrib/eepic/fig2eepic/makefile b/macros/latex/contrib/eepic/fig2eepic/makefile
new file mode 100644
index 0000000000..6574890b8d
--- /dev/null
+++ b/macros/latex/contrib/eepic/fig2eepic/makefile
@@ -0,0 +1,35 @@
+# Fig2epic : FIG to EPIC translator
+#
+# Conrad Kwok
+# Modified from fig2pic which was modified from f2ps
+#
+
+SRCDIR = ../src
+SRCLIB = $(SRCDIR)/lib.a
+
+LIBS = -lm
+#
+# Use of gcc is recommended whenever available.
+# -Inlcude DNoVPRINTF in CFLAGS if vprintf is not included in the library
+# Include -DNoConfigFile and remove config.* if no configuration
+# file is desired.
+#
+CFLAGS = -O $(CROSS)
+CC = gcc $(CFLAGS) -I$(SRCDIR)
+
+fig2epic : fig2epic.o config.o $(SRCLIB)
+ $(CC) fig2epic.o config.o $(SRCLIB) -lm -o fig2epic
+
+# Include:
+# -DINT32BIT when int is 32 bits long
+# -DOldFashion when compiled using cc on Ultrix and BSD 4.x
+config.o : config.c
+ $(CC) -DINT32BIT -c config.c
+
+$(SRCLIB):
+ (cd ../src; make)
+
+#########
+clean :
+ rm -f *.o fig2epic core
+