2 # Makefile for cbits subdirectory
5 include $(TOP)/mk/boilerplate.mk
10 C_SRCS=$(wildcard *.c)
12 # Remove Readline.lhs if readline.h isn't available.
13 ifneq "$(HAVE_READLINE)" "YES"
14 C_SRCS := $(filter-out ghcReadline.c,$(C_SRCS))
18 # -D__GNUC__ : added to turn off noise from byteorder.h with 2.7.2 / Solaris-2.3
20 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) -D__GNUC__
21 SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR)
23 LIBRARY=libHSghc_cbits.a
25 INSTALL_LIBS += $(LIBRARY)
27 include $(TOP)/mk/target.mk