On 27 Jun 2008, at 20:46, Jane wrote: > > anyone knows how I would test for the current OS (Linux/Mac/ > Windows) in a Makefiles (or better yet, configure.ac) and set > LDFLAGS depending on the results? >
# now we can make specific modifications based on the operating system and host UNAME := $(shell uname) #ifeq '$(OS)' "Windows_NT" ifeq ($(findstring MINGW32,$(UNAME)),MINGW32) TIMELIB = -lwinmm # The extension to use for executables... EXE = .exe CFLAGS += -DWIN32 endif # end of WIN32 options ifeq ($(strip $(UNAME)),Linux) TIMELIB = EXE = CFLAGS += -DLINUX endif # end of linux options ifeq ($(strip $(UNAME)),Darwin) TIMELIB = EXE = LDLIBS += -framework CoreFoundation endif # end of OSX options _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

