Update of /cvsroot/hoc/hoc/HOC_cbits
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4305/HOC_cbits
Added Files:
Makefile.in
Removed Files:
Makefile
Log Message:
Changed build system to use GNU autoconf (./configure && make && make install)
rather than home-grown build system
Removed import HOC.Marshal from HOC/HOC.hs, since HOC.Marshal requires Foundation.NSString and thus generates a circular dependency
Small documentation updates
--- NEW FILE: Makefile.in ---
include ../config.mk
SRCS=\
Class.m\
GetNewHaskellData.m\
MemoryManagement.m\
ObjectMap.m\
Selector.m\
FFICallInterface.m\
Invocation.m\
NewClass.m\
RetainedHaskellPart.m\
Marshalling.m
OBJS=$(SRCS:%.m=%.o)
CFLAGS+=-g -I../libffi-src/build/include
all: libHOC_cbits.a HOC_cbits.o
clean:
rm -rf libHOC_cbits.a HOC_cbits.o $(OBJS) depend
HOC_cbits.o: libHOC_cbits.a
ld -r -x -o HOC_cbits.o $(ALL_LOAD) libHOC_cbits.a
if test $(PLATFORM) == gnustep; then \
strip --strip-debug HOC_cbits.o; \
fi
libHOC_cbits.a: $(OBJS)
cp ../libffi-src/build/.libs/libffi.a libHOC_cbits.a
ar qs libHOC_cbits.a $(OBJS)
%.o: %.m
gcc -c $(CFLAGS) -o $@ $<
depend: $(SRCS)
cc -MM $(CFLAGS) $(SRCS) > depend
install: all
mkdir -p `ghc --print-libdir`/HOC
cp -R libHOC_cbits.a HOC_cbits.o \
`ghc --print-libdir`/HOC/
ranlib `ghc --print-libdir`/HOC/libHOC_cbits.a
-include depend
--- Makefile DELETED ---
|