# skeleton Makefile for cross compiling windows for SWI # alot of the work is done by a prolog script that # uses includes and R dlls in my disk space and includes those ala # buildenv.sh (on the fly) # SOBJ= $(PACKSODIR)/space.$(SOEXT) LIBS= @LIBS@ CXX= @CXX@ LD= @CXX@ OBJ= c/space.o c/globals.o c/Index.o c/Search.o \ c/Shapes.o c/lock.o c/debug.o CFLAGS+=-I. -std=c++17 all: $(SOBJ) $(SOBJ): $(OBJ) mkdir -p $(PACKSODIR) $(LD) $(ARCH) $(LDSOFLAGS) -o $@ $(OBJ) $(LIBS) $(SWISOLIB) .cc.o: $(CXX) $(ARCH) $(CFLAGS) -c -o $@ $< check:: swipl -g test_space -t halt test/test_space.pl install:: clean: rm -f c/*.o *~ distclean: clean rm -f $(SOBJ)