On 2009-01-12 12:19Z, Eric Lilja wrote:
Hello, I have a program that will built both under fedora and under
cygwin. The program is written in C and the Makefile is slightly
different between the two systems. Is it possible to check some
environment variable in the makefile to determine what
osname := $(shell uname -s)
osver := $(shell uname -r)
cpuarch := $(shell uname -m)
Probably the fault is mine but I can't get this to do anything useful in
Cygwin. You could try (something like):
case `uname` in
*CYGWIN*)
OS=Cygwin
;;
*Darwin*)
OS=Darwin
;;
*)
Fergus wrote:
osname := $(shell uname -s)
osver := $(shell uname -r)
cpuarch := $(shell uname -m)
Probably the fault is mine but I can't get this to do anything useful in
Cygwin. You could try (something like):
case `uname` in
Hmm, did you try those first examples in bash before
On 2009-01-12, Fergus fer...@bonhard.uklinux.net wrote:
osname := $(shell uname -s)
osver := $(shell uname -r)
cpuarch := $(shell uname -m)
Probably the fault is mine but I can't get this to do anything useful in
Cygwin. You could try (something like):
case `uname` in
*CYGWIN*)
4 matches
Mail list logo