Various old make file updates, quasi Warnock's Dilemma
[parrot.git] / config / gen / makefiles / dynoplibs.in
blob7b5852e83afc4509a09f46b3a29fb763e14b58e3
1 PERL = @perl@
2 RM_F = @rm_f@
3 LOAD_EXT = @load_ext@
4 RUNTIME_DIR = @build_dir@@slash@runtime@slash@parrot@slash@dynext
5 O = @o@
7 # add your dynamic op libraries here
9 OPLIBS = \
10   myops \
11   dan
13 BUILD = $(PERL) "@build_dir@@slash@tools@slash@build@slash@dynoplibs.pl"
15 all :
16         @$(BUILD) generate $(OPLIBS)
17         @$(BUILD) compile $(OPLIBS)
18         @$(BUILD) linklibs $(OPLIBS)
19         @$(BUILD) copy "--destination=$(RUNTIME_DIR)" $(OPLIBS)
21 test : all
22          cd ..@slash@.. ; perl -Ilib t/harness t/dynoplibs/*.t
24 testclean :
25          $(RM_F) "../../t/dynoplibs/*.pir" "../../t/dynoplibs/*.pbc"
27 # win32 import library
28 # win32 program data base - contains debugging info
29 # win32 incremental link status files
30 # win32 exported functions and data items
31 # win32 export definition files
32 dynext-clean :
33         $(RM_F) "*.lib" "*.pdb" "*.ilk" "*.exp" "*.def"
35 clean : testclean dynext-clean
36         $(RM_F) "*.h" "*.c" "*$(LOAD_EXT)" "*$(O)"
38 archclean :
39         $(RM_F) "*$(LOAD_EXT)" "*$(O)" Makefile
41 realclean: clean
42         $(RM_F) Makefile
44 distclean: realclean
46 cvsclean: realclean