[project @ 1998-02-02 17:27:26 by simonm]
[ghc-hetmet.git] / ghc / lib / misc / cbits / Makefile
1 #
2 # Makefile for cbits subdirectory
3 #
4 TOP=../../..
5 include $(TOP)/mk/boilerplate.mk
6 override WAYS=
7
8 CC:=$(HC)
9
10 C_SRCS=$(wildcard *.c)
11
12 # Remove Readline.lhs if readline.h isn't available.
13 ifneq "$(HAVE_READLINE)" "YES"
14   C_SRCS := $(filter-out ghcReadline.c,$(C_SRCS))
15 endif
16
17 # ToDo: properly
18 # -D__GNUC__ : added to turn off noise from byteorder.h with 2.7.2 / Solaris-2.3
19 #
20 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR) -D__GNUC__
21 SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR)
22
23 LIBRARY=libHSghc_cbits.a
24 LIBOBJS=$(C_OBJS)
25 INSTALL_LIBS += $(LIBRARY)
26
27 include $(TOP)/mk/target.mk