https://github.com/cran/XML
Raw File
Tip revision: 1d3722a62a06a7decb250f6b90363fbfdff34d00 authored by ORPHANED on 19 February 2018, 08:02:18 UTC
version 3.98-1.10
Tip revision: 1d3722a
GNUmakefile
CC=gcc

ifeq ($(CC),gcc)
# Use with gcc.
  PIC_FLAG=-fpic
  PIC_LD_FLAG=-shared
else
# Use with Solaris compilers.
  PIC_FLAG=-Kpic
  PIC_LD_FLAG=-G
endif


CFLAGS=-DLIBXML_VERSION="\"1\"" $(PIC_FLAG)


SRC=$(shell ls *.c)
SRC=\
HTMLparser.c \
HTMLtree.c \
SAX.c \
debugXML.c \
encoding.c \
entities.c \
error.c \
nanohttp.c \
parser.c \
tree.c \
valid.c \
xmlIO.c \
xmlmemory.c \
xpath.c

OBJS=$(SRC:%.c=%.o)

%.o: %.c
	$(CC) $(CFLAGS) -c $<

libxml.so: $(OBJS)
	$(CC) $(PIC_LD_FLAG) -o $@ $(OBJS)
back to top