| 1 |
# Fig2epic : FIG to EPIC translator |
| 2 |
# |
| 3 |
# Conrad Kwok |
| 4 |
# Modified from fig2pic which was modified from f2ps |
| 5 |
# |
| 6 |
|
| 7 |
SRCDIR = ../src |
| 8 |
SRCLIB = $(SRCDIR)/lib.a |
| 9 |
|
| 10 |
LIBS = -lm |
| 11 |
# |
| 12 |
# Use of gcc is recommended whenever available. |
| 13 |
# -Inlcude DNoVPRINTF in CFLAGS if vprintf is not included in the library |
| 14 |
# Include -DNoConfigFile and remove config.* if no configuration |
| 15 |
# file is desired. |
| 16 |
# |
| 17 |
CFLAGS = -O $(CROSS) |
| 18 |
CC = gcc $(CFLAGS) -I$(SRCDIR) |
| 19 |
|
| 20 |
fig2epic : fig2epic.o config.o $(SRCLIB) |
| 21 |
$(CC) fig2epic.o config.o $(SRCLIB) -lm -o fig2epic |
| 22 |
|
| 23 |
# Include: |
| 24 |
# -DINT32BIT when int is 32 bits long |
| 25 |
# -DOldFashion when compiled using cc on Ultrix and BSD 4.x |
| 26 |
config.o : config.c |
| 27 |
$(CC) -DINT32BIT -c config.c |
| 28 |
|
| 29 |
$(SRCLIB): |
| 30 |
(cd ../src; make) |
| 31 |
|
| 32 |
######### |
| 33 |
clean : |
| 34 |
rm -f *.o fig2epic core |
| 35 |
|