Note that there are some explanatory texts on larger screens.

plurals
  1. POI can not figure it out what's wrong in this makefile?
    text
    copied!<p>I am trying to compile a C library for genetic programming called <a href="https://dl.dropboxusercontent.com/u/39371917/lilgp1.1.tar.gz" rel="nofollow">lil-gp</a>.</p> <p>I do not know if this kind of questions are appropriate to ask here but i am seeking serious help about this.</p> <p>The makefile resides under the directory <code>lilgp1.1/1.1/kernel</code> and named as <code>GNUmakefile.kernel</code>. And it looks like this:</p> <pre><code>kobjects = main.o gp.o eval.o tree.o change.o crossovr.o reproduc.o \ mutate.o select.o tournmnt.o bstworst.o fitness.o genspace.o \ exch.o populate.o ephem.o ckpoint.o event.o pretty.o individ.o \ params.o random.o memory.o output.o kheaders = event.h defines.h types.h protos.h protoapp.h .PHONY : all clean LIBS += -lm CFLAGS += -I. -I$(KERNELDIR) all : $(TARGET) lilgp.h = $(addprefix $(KERNELDIR)/,$(kheaders)) $(uheaders) $(kobjects) : %.o : $(KERNELDIR)/%.c $(CC) -c $(CFLAGS) $&lt; -o $@ $(uobjects) : %.o : %.c $(CC) -c $(CFLAGS) $&lt; -o $@ $(kobjects) $(uobjects) : $(lilgp.h) $(TARGET) : $(kobjects) $(uobjects) $(CC) $(LFLAGS) -o $@ $^ $(LIBS) clean : \rm -f $(kobjects) $(uobjects) core </code></pre> <p>As a first move I followed these steps:</p> <ol> <li>I renamed it as <code>Makefile</code></li> <li>Second i moved <code>all : $(TARGET)</code> just above to the <code>clean: ...</code></li> </ol> <p>But GNU make complains me that :</p> <pre><code>make: *** No rule to make target `/main.c', needed by `main.o'. Stop. </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload