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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
#
# Adapted from NCSA Xmosaic Makefile
# ----------------------------------------------------------------------------
# For normal machines with normal compilers:
CC = cc
# For testing:
# CC = gcc
# For Sun's and other non-at-least-pseudo-ANSI-C platforms:
# CC = gcc
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# For SGI's:
CFLAGS = -g -cckr -DXMOSAIC
# For testing:
# CFLAGS = -g -Wall -DXMOSAIC
# For HP's:
# CFLAGS = -g -DXMOSAIC -I/usr/include/Motif1.1 -I/usr/include/X11R4
# For everyone else:
# CFLAGS = -g -DXMOSAIC
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# For SGI's:
RANLIB = /bin/true
# For everyone else:
# RANLIB = ranlib
# ----------------------------------------------------------------------------
# You shouldn't need to edit below here.
EXETARGET = html2latex
LIBTARGET = libhtmlp.a
DOCTARGET = html2latex.tex
all: $(LIBTARGET) $(EXETARGET) $(DOCTARGET)
CFILES = HTMLparse.c HTMLplist.c
OBJS = $(CFILES:.c=.o)
$(LIBTARGET): $(OBJS)
-rm -f $(LIBTARGET)
ar rv $(LIBTARGET) $(OBJS)
$(RANLIB) $(LIBTARGET)
$(EXETARGET): $(LIBTARGET) $(EXETARGET).c
$(CC) $(CFLAGS) -o $(EXETARGET) $(EXETARGET).c $(LIBTARGET)
$(DOCTARGET): $(EXETARGET) html2latex.html
./$(EXETARGET) html2latex.html
$(OBJS): HTMLparse.h
clean:
-/bin/rm $(EXETARGET) $(OBJS) $(LIBTARGET) $(DOCTARGET)
|