Vasm and directory separator

All 680x0 related coding posts in this section please.

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
Mr Nours
Captain Atari
Captain Atari
Posts: 203
Joined: Mon Jun 17, 2002 11:10 am
Location: Montpellier, France
Contact:

Vasm and directory separator

Postby Mr Nours » Thu Jan 05, 2017 2:30 pm

Hi all,

I want to use vasm for compiling various sourcecodes.

Sometimes incbin paths are made with the Windows directory separator "\", sometimes with the Linux one "/".

I found that older versions of vasm (1.3) do accept the two separator in includes but when i compile and use a newer version (1.6+) it only recognize the separator from the system where i built the binary.

For example, on my Linux box if the sourcecode was written with windows relative path, compilation fails ( could not open BLAH\SOMECODE.S ).

I had not found any options in the manual so far...

Do you know a way to make vasm accept both separators?

Thanks for your help.
______
Fuzion, the best french Atari CD crew ->The Fuzion Shrine!
ST emulation and more ->Emulation Atari ST(fr)!

User avatar
Mr Nours
Captain Atari
Captain Atari
Posts: 203
Joined: Mon Jun 17, 2002 11:10 am
Location: Montpellier, France
Contact:

Re: Vasm and directory separator

Postby Mr Nours » Fri Jan 06, 2017 7:12 pm

Seems i found a workaround. I define _WIN32 option in the COPTS part of the Makefile then compile.

Under Linux relative path with backward or forward slashes separator are now considered as valid ones. Perhaps it may work under OSX as well.

I had tested the last version (1.7g) with several sources with both the tos output module and the vobj output module, seems to works.

Compilation :

make CPU=m68k SYNTAX=mot

Makefile :

# Unix

TARGET =
TARGETEXTENSION =
OUTFMTS = -DOUTAOUT -DOUTBIN -DOUTELF -DOUTHUNK -DOUTSREC -DOUTTOS -DOUTVOBJ

CCOUT = -o
COPTS = -c -D_WIN32 -O2 $(OUTFMTS)

LD = $(CC)
LDOUT = $(CCOUT)
LDFLAGS = -lm

RM = rm -f

include make.rules
______

Fuzion, the best french Atari CD crew ->The Fuzion Shrine!

ST emulation and more ->Emulation Atari ST(fr)!


Social Media

     

Return to “680x0”

Who is online

Users browsing this forum: No registered users and 1 guest

cron