Skip to content

Commit

Permalink
dynpmc/os: actually build this dummy pmc for loadlib "os" backcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Sep 13, 2012
1 parent a3f99d3 commit b6584ae
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dynpmc/Defines.in
Expand Up @@ -7,6 +7,7 @@ DYNPMC_TARGETS = \
$(DYNEXT_DIR)/dynlexpad$(LOAD_EXT) \
$(DYNEXT_DIR)/file$(LOAD_EXT) \
$(DYNEXT_DIR)/foo_group$(LOAD_EXT) \
$(DYNEXT_DIR)/os$(LOAD_EXT) \
$(DYNEXT_DIR)/pccmethod_test$(LOAD_EXT) \
$(DYNEXT_DIR)/rotest$(LOAD_EXT) \
$(DYNEXT_DIR)/rational$(LOAD_EXT) \
Expand Down
27 changes: 27 additions & 0 deletions src/dynpmc/Rules.in
Expand Up @@ -120,6 +120,33 @@ src/dynpmc/gziphandle.dump: src/dynpmc/gziphandle.pmc vtable.dump $(CLASS_O_FILE



$(DYNEXT_DIR)/os$(LOAD_EXT): src/dynpmc/os$(O)
$(LD) @ld_out@$(DYNEXT_DIR)/os$(LOAD_EXT) \
#IF(cygwin and optimize): -s \
src/dynpmc/os$(O) $(LINKARGS)
#IF(win32): if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;2
#IF(cygwin or hpux): $(CHMOD) 0775 $@

src/dynpmc/pmc_os.h : src/dynpmc/os.c

src/dynpmc/os$(O): \
src/dynpmc/os.c \
$(DYNPMC_H_FILES) \
src/dynpmc/os.str \
src/dynpmc/pmc_os.h \
include/pmc/pmc_fixedintegerarray.h

src/dynpmc/os.c: src/dynpmc/os.dump
$(PMC2CC) src/dynpmc/os.pmc

src/dynpmc/os.str: src/dynpmc/os.c
$(PERL) $(BUILD_TOOLS_DIR)/c2str.pl $< >$@

src/dynpmc/os.dump: src/dynpmc/os.pmc vtable.dump $(CLASS_O_FILES)
$(PMC2CD) src/dynpmc/os.pmc



$(DYNEXT_DIR)/pccmethod_test$(LOAD_EXT): src/dynpmc/pccmethod_test$(O)
$(LD) @ld_out@$(DYNEXT_DIR)/pccmethod_test$(LOAD_EXT) \
#IF(cygwin and optimize): -s \
Expand Down

0 comments on commit b6584ae

Please sign in to comment.