Subject:
|
Re: Another possible makefile change
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Wed, 8 Mar 2000 04:38:37 GMT
|
Viewed:
|
1372 times
|
| |
| |
> Although *nix system's try to figure out the interpreter for a script if
> you don't provide it, it doesn't harm to do so. Thus, actually you
> dont't have to distinct 2 cases here. We could simply use the MERGEMAP
> you suggest for all currently supported systems.
Then for cross plateform compatibility, we should modify all the references
to perl script to include the program name. It doesn't hurt Linux, and is
essential in a DOS shell.
> However, i guess sooner or later we might need conditionals depending on
> the OS. The easiest way to detect the OS running under *nix is the
> command uname. On linux systems, the ouput is: Linux. Is that command
> available in the cygwin environment ?
I researched your 'uname' suggestion and came up with the following. It
works on my system and it should work on Linux.
Add this to makefile.common:
OSTYPE := $(shell uname)
Later, when building the executible, we can reference the correct filename,
regardless of the OS:
{makefile in dll-src directory}
ifeq ($(OSTYPE),MS-DOS)
EXT = .EXE
else
EXT =
endif
TARGET1 = dll$(EXT)
TARGET2 = makelx$(EXT)
SINGLE_SRC_TARGETS = genlds$(EXT) fixdeps$(EXT)
I still can't write to sourceforge (I'm sure it's a problem in my
configuration), so if anyone wants to make this change and check it in, I
would appreciate it.
I think the biggest obstacle to cross system compatiblity lies in the
utility program (makelx.exe, etc). They are a major pain to build on
non-Linux systems. I will probably work on building them over the weekend
(again), but I didn't have much luck last weekend.
Rossz
|
|
Message has 1 Reply: | | Re: Another possible makefile change
|
| (...) great, Rossz, but i see one little problem here. I'm suspecting that it's no good idea to include Makefile.common in the Makefile for dll-src, because Makefile.common sets some standard Variables and rules to values appropriate for cross (...) (25 years ago, 8-Mar-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: Another possible makefile change
|
| (...) Although *nix system's try to figure out the interpreter for a script if you don't provide it, it doesn't harm to do so. Thus, actually you dont't have to distinct 2 cases here. We could simply use the MERGEMAP you suggest for all currently (...) (25 years ago, 7-Mar-00, to lugnet.robotics.rcx.legos)
|
9 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|