# $Id: /mirror/trunk/config/gen/makefiles/dynoplibs.in 35434 2009-01-11T10:42:49.818630Z fperrad  $

PERL        = @perl@
RM_F        = @rm_f@
LOAD_EXT    = @load_ext@
RUNTIME_DIR = @build_dir@/runtime/parrot/dynext
O           = @o@

# add your dynamic op libraries here
#
OPLIBS = \
  myops \
  dan

BUILD = $(PERL) @build_dir@/tools/build/dynoplibs.pl

all :
	@$(BUILD) generate $(OPLIBS)
	@$(BUILD) compile $(OPLIBS)
	@$(BUILD) linklibs $(OPLIBS)
	@$(BUILD) copy --destination=$(RUNTIME_DIR) $(OPLIBS)

test : all
	 cd ../.. && $(PERL) -Ilib t/harness t/dynoplibs/*.t

testclean :
	 $(RM_F) "../../t/dynoplibs/*.pir" "../../t/dynoplibs/*.pbc"

# win32 import library
# win32 program data base - contains debugging info
# win32 incremental link status files
# win32 exported functions and data items
# win32 export definition files
dynext-clean :
	$(RM_F) "*.lib" "*.pdb" "*.ilk" "*.exp" "*.def" "*.manifest"

clean : testclean dynext-clean
	$(RM_F) "*.h" "*.c" "*$(LOAD_EXT)" "*$(O)"

archclean :
	$(RM_F) "*$(LOAD_EXT)" "*$(O)" Makefile

realclean: clean
	$(RM_F) Makefile

distclean: realclean

svnclean: realclean
