CFLAGS = -I/usr/sup/gnu/lib/perl5/sun4-solaris/CORE LDFLAGS = -L/usr/sup/gnu/lib/perl5/sun4-solaris/CORE LDLIBS = -lperl XS = xsubpp #XSFLAGS = -typemap /usr/sup/gnu/lib/perl5/ExtUtils/typemap CC = gcc PERL = perl xs-files = ${basename ${wildcard *.xs}} .PRECIOUS: ${addsuffix .c,$(xs-files)} %.c : %.xs $(XS) $(XSFLAGS) $< >$@ testing : test-simple test-lists test-simple : simpletst.pl simple.o simple.pm $(PERL) $(PERLFLAGS) $< test-lists : liststst.pl lists.o lists.pm $(PERL) $(PERLFLAGS) $< print : print-simple print-simple : simple.xs simple.pm simpletst.pl typemap indent -gnu simple.c a2ps -c typemap simple.xs a2ps -c simple.pm simpletst.pl print-lists : lists.xs lists.pm liststst.pl typemap indent -gnu lists.c a2ps -c typemap lists.xs a2ps -c lists.pm liststst.pl extras = ${addsuffix .c, $(xs-files)} removables = ${wildcard *.o *.dvi core $(extras)} clean : ifneq "${strip $(removables)}" "" -$(RM) $(removables) else -@echo Directory is already cleaned endif