Building

14 views
Skip to first unread message

Matt Youell

unread,
Jan 14, 2009, 11:07:11 AM1/14/09
to Bertrand Constraint Programming Language
Hi there.

I haven't built a C project from source without a makefile in about 10
years. I took a few stabs at it but failed. I feel like a helpless
moron, but how can I build this project? I did grab Igal's version at
some point and was able to build that IIRC. But as I understand it
there have been some changes and I'd like to have the latest/greatest.

Also, are there plans to put this thing under source control again?

Thanks!

Matt

Igal Koshevoy

unread,
Jan 14, 2009, 11:13:19 AM1/14/09
to bertrand-...@googlegroups.com
I'm badly overloaded, so I won't be able to repackage and ship another
version any time soon. If someone wants to fork my version of the code
and merge in Wm's changes, that'd be good. Better yet, spend some time
with Wm showing him how Git works and why it's a good thing so he can do
that himself, which will make him more productive and will eliminate an
extra repackaging stage. :)

-igal

Matt Youell

unread,
Jan 14, 2009, 11:49:01 AM1/14/09
to Bertrand Constraint Programming Language
I'll see if I can stitch the two together. I think my gcc-fu is just
weak.

Thanks Igal,

Matt

wm

unread,
Jan 14, 2009, 12:41:54 PM1/14/09
to Bertrand Constraint Programming Language
My bad. The Makefile got left out of the last archive by mistake.
I'll upload a new archive later today.

Good question about source control. I'll try to do that before the
meeting. Anyone want to help with it (since Igal is overloaded)?

Just to make things worse, I just discovered a bug in the equation
solver, that can cause an infinite loop for some sets of constraints.
I know how to solve the problem, but it will be some work. Sigh.

--wm

Wm Leler

unread,
Jan 14, 2009, 1:00:55 PM1/14/09
to bertrand-...@googlegroups.com
Until I can upload the new archive, here's the Makefile:

# Bertrand interpreter.

# Make sure the variable LIBDIR is set to where you want your
# include files to live (e.g., beep, bops and bag).

# OPT = -O
OPT = -g

CFLAGS = $(OPT) -DLIBDIR='"libraries/"'

# NeWS cps graphics library.
# GRAPHLIB = -lm $(NEWSHOME)/lib/libcps.a
# GRAPHOBJ = graphics.o
GRAPHOBJ = graphicsnull.o

SRCS = expr.c names.c ops.c parse.c prep.c rules.c primitive.c\
scanner.c main.c util.c match.c
OBJS = expr.o names.o ops.o parse.o prep.o rules.o primitive.o\
scanner.o main.o util.o match.o

bert: $(OBJS) $(GRAPHOBJ)
cc -lm $(OPT) -o bert $(OBJS) $(GRAPHOBJ) $(GRAPHLIB)

graphicsnull.o: graphicsnull.c
cc $(CFLAGS) -c graphicsnull.c

graphics.o: graphics.c graphics.h
cc $(CFLAGS) -c graphics.c

graphics.h: graphics.cps
cps graphics.cps

Matt Youell

unread,
Jan 14, 2009, 1:15:03 PM1/14/09
to Bertrand Constraint Programming Language
Thanks Wm! The makefile did the trick.

What help do you need with source control?

Wm Leler

unread,
Jan 14, 2009, 11:15:57 PM1/14/09
to bertrand-...@googlegroups.com
Mostly just information. My hosting provider has subversion installed
-- should I just use that? Or is there some website that has source
control and bug tracking and other useful things like that (and is
free of course!).

--wm

Matt Youell

unread,
Jan 14, 2009, 11:53:20 PM1/14/09
to Bertrand Constraint Programming Language
On Jan 14, 8:15 pm, Wm Leler <wmle...@gmail.com> wrote:
> Mostly just information. My hosting provider has subversion installed  
> -- should I just use that?  Or is there some website that has source  
> control and bug tracking and other useful things like that (and is  
> free of course!).

Igal threw his branch up on github. I would take that as a strong
endorsement of git and github, both of which seem popular. And they
host open source projects for free. So that should work.

Which brings up licensing. In the zip you posted there's a two liner
about usage but there's no real license. Do you have one in mind?


Thanks,

Matt

Phil Tomson

unread,
Jan 15, 2009, 1:20:48 AM1/15/09
to bertrand-...@googlegroups.com

Yeah, I'd second using github.

Phil

wm

unread,
Jan 22, 2009, 6:55:39 PM1/22/09
to Bertrand Constraint Programming Language
I wrote this long before there was any concept of open licenses. My
intent was that anyone could do anything with this they wanted to,
except sell it for profit (other than distribution cost).
Reply all
Reply to author
Forward
0 new messages