[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Hurd friendly Makefile



I was trying to make a hurd busybox package the other day, but i got
stuck trying to workout how to change the Makefile so it does different
steps if its compiling for the Hurd or Linux.

I was going to do this

ifeq ($(strip $(shell uname)),Linux)
  LIBBB_CSRC+= interface.c module_syscalls.c syscalls.c
endif

to isolate linux specific code, but im told this wont work under a cross
compiler.

I dont know much about setting up cross compilers... anyone have a
better suggestion for modifying a makefile (it doesnt use a configure)
to switch behaviour if compiling for linux or the Hurd ?


Thanks

Glenn



Reply to: