8d24ee55be02d0128d970866774808b266755f84
[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 "$(GhcLibsWithReadline)" "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)
19
20 LIBRARY=libHSmisc_cbits.a
21 LIBOBJS=$(C_OBJS)
22 INSTALL_LIBS += $(LIBRARY)
23
24 include $(TOP)/mk/target.mk