Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/prelude/NonStd/Makefile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


include Makefile.inc

EXCLUDE_THISLIB_HS = yes
THISLIB	= NonStd
SEARCH	= -P$(LOW)

SRCS	=
LIBSRCS = \
	NonStdUnsafeCoerce.hs \
	NonStdProfile.hs \
	NonStdEval.hs  \
	NonStdTrace.hs \
	Warning.hs \
	NonStdGetPID.gc


# Here are the main rules.
include ../Makefile.common


# Here are some extra rules.


HOBJS	= $(patsubst %.hs, ${OBJDIR}/%.$O, $(filter %.hs, ${LIBSRCS}))
GOBJS	= $(patsubst %.gc, ${OBJDIR}/%.$O, $(filter %.gc, ${LIBSRCS}))
HCFILES = $(patsubst %.hs, %.$C, $(filter %.hs, ${LIBSRCS}))
GCFILES = $(patsubst %.gc, %.$C, $(filter %.gc, ${LIBSRCS}))

extra:	${HOBJS} ${GOBJS}
extracfiles: $(HCFILES) $(GCFILES)

${HOBJS}: ${OBJDIR}/%.$O : %.hs
	$(HC) -c $(LIB_FLAGS) -o $@ $<
${GOBJS}: ${OBJDIR}/%.$O : %.gc
	$(HC) -c $(LIB_FLAGS) -o $@ $<
${HCFILES}: %.$C : %.hs
	$(HC) -C $(LIB_FLAGS) $<
${GCFILES}: %.$C : %.gc
	$(HC) -C $(LIB_FLAGS) $<

cleanExtraC:
	rm -f ${HCFILES} ${GCFILES}



# Here are the dependencies.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.