[project @ 1998-12-02 13:17:09 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 SRC_MKDEPENDC_OPTS += -I$(GHC_INCLUDE_DIR)
18 SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) -I$(GHC_LIB_DIR)/std/cbits
19
20 LIBRARY=libHSmisc_cbits.a
21 LIBOBJS=$(C_OBJS)
22 INSTALL_LIBS += $(LIBRARY)
23
24 include $(TOP)/mk/target.mk