The R Project SVN R

Rev

Rev 33359 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#-*- Makefile -*-
include ../../gnuwin32/MkRules

CFLAGS = -I../../include -I. -O2 -DWIN32

all: chartables.h makeMakedeps libpcre.a

CSOURCES = pcre_compile.c pcre_config.c pcre_dfa_exec.c pcre_exec.c \
    pcre_fullinfo.c pcre_get.c pcre_globals.c pcre_info.c \
    pcre_maketables.c pcre_ord2utf8.c pcre_printint.c pcre_refcount.c \
    pcre_study.c pcre_tables.c pcre_try_flipped.c pcre_ucp_findchar.c \
    pcre_valid_utf8.c pcre_version.c pcre_xclass.c
OBJS=$(CSOURCES:.c=.o)
libpcre.a: $(OBJS)

## this can't be used if cross-building, so ship the file
ifneq ($(strip $(BUILD)),CROSS)
dftables.exe: dftables.o
chartables.h: dftables.exe
    ./dftables chartables.h
else
chartables.h: chartables.h.win 
    $(CP) chartables.h.win chartables.h
endif

clean:
    $(RM) *.o *~ libpcre.a *.d Makedeps

distclean: clean
    $(RM) chartables.h dftables.exe

# Dependencies
DEPS=$(CSOURCES:.c=.d)

makeMakedeps: $(DEPS)
    @$(RM) Makedeps
    @cat $(DEPS) >> Makedeps

-include Makedeps