Sha256: 18bc0a8080cdcc7aa5195aefe2e945885a187a4a6f913b1c88bad0d99d49947a

Contents?: true

Size: 1.8 KB

Versions: 4

Compression:

Stored size: 1.8 KB

Contents

CC = @CC@
LD = @LD@

CONFIGURE_CFLAGS = @CONFIGURE_CFLAGS@
NDT_CFLAGS = $(strip $(CONFIGURE_CFLAGS) $(CFLAGS))
NDT_CFLAGS_SHARED = $(NDT_CFLAGS) -fPIC

CONFIGURE_COV_CFLAGS = @CONFIGURE_COV_CFLAGS@
ifeq ($(MAKECMDGOALS), coverage)
  NDT_CFLAGS = $(strip $(CONFIGURE_COV_CFLAGS) $(CFLAGS))
endif


OBJS = bpgrammar.o bplexer.o import.o export.o
SHARED_OBJS = .objs/bpgrammar.o .objs/bplexer.o .objs/import.o .objs/export.o


default: $(OBJS) $(SHARED_OBJS)


bpgrammar.o:\
Makefile bpgrammar.c bpgrammar.h bplexer.h ../ndtypes.h ../seq.h
	$(CC) $(NDT_CFLAGS) -c bpgrammar.c

.objs/bpgrammar.o:\
Makefile bpgrammar.c bpgrammar.h bplexer.h ../ndtypes.h ../seq.h
	$(CC) $(NDT_CFLAGS_SHARED) -c bpgrammar.c -o .objs/bpgrammar.o

bplexer.o:\
Makefile bplexer.c bpgrammar.h bplexer.h
	$(CC) $(NDT_CFLAGS) -c bplexer.c

.objs/bplexer.o:\
Makefile bplexer.c bpgrammar.h bplexer.h
	$(CC) $(NDT_CFLAGS_SHARED) -c bplexer.c -o .objs/bplexer.o

import.o:\
Makefile import.c bpgrammar.h bplexer.h ../ndtypes.h ../seq.h
	$(CC) $(NDT_CFLAGS) -c import.c

.objs/import.o:\
Makefile import.c bpgrammar.h bplexer.h ../ndtypes.h ../seq.h
	$(CC) $(NDT_CFLAGS_SHARED) -c import.c -o .objs/import.o

export.o:\
Makefile export.c bpgrammar.h bplexer.h ../ndtypes.h ../seq.h
	$(CC) $(NDT_CFLAGS) -c export.c

.objs/export.o:\
Makefile export.c bpgrammar.h bplexer.h ../ndtypes.h ../seq.h
	$(CC) $(NDT_CFLAGS_SHARED) -c export.c -o .objs/export.o


# Without these, GNU make automatically builds the parser.
%.c: %.y
%.c: %.l

parser: FORCE
	bison -Wall -o bpgrammar.c -pndt_bp --defines=bpgrammar.h bpgrammar.y
	flex -o bplexer.c -Pndt_bp --header-file=bplexer.h bplexer.l


FORCE:

clean: FORCE
	rm -f *.o *.so *.gch *.gcda *.gcno *.gcov *.dyn *.dpi *.lock
	cd .objs && rm -f *.o *.so *.gch *.gcda *.gcno *.gcov *.dyn *.dpi *.lock

distclean: clean
	rm -f Makefile


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ndtypes-0.2.0dev8 ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile.in
ndtypes-0.2.0dev6 ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile.in
ndtypes-0.2.0dev5 ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile.in
ndtypes-0.2.0dev4 ext/ruby_ndtypes/ndtypes/libndtypes/compat/Makefile.in