Quentin Lassalle
Quentin Lassalle

Reputation: 13

Error building CUnit on Windows

Since yesterday i'm trying to install CUnit on my computer. I know how to do it because it worked on my college computer. I used this topic Building CUnit on Windows, i'm sure that the answer works.

But on my personnal PC i'm having a problem after libtoolize, using automake --add-missing. I tried to do autoreconf --install but i'm still getting this error :

CUnit/Sources/Framework/Makefile.am:20: '%' style pattern rules are a GNU make extension

The 20th line in the file is the following one :

 %_test.o: %.c
      $(COMPILE) $(TEST_INCLUDES) $(TEST_DEFINES) -o $@-c$<

I searched on the internet and I saw that some people recommend to use .c instead of %c but it doesn't work for me, it only does three libtoolize lines and stopped then. If I try to do automake --add-missing after this modification, nothing is going on.

I really don't know what to do now, it would be really helpful if someone had a solution.

Thanks

Upvotes: 0

Views: 442

Answers (1)

Gilbert Ramirez
Gilbert Ramirez

Reputation: 11

You don't mention which OS your personal computer is running, but it appears that the "make" you have installed is not GNU Make. It is probably a BSD make. So, it doesn't honor %-style pattern rules.

One option is to install GNU make; it's an easy program to download and build, so you could install it easily.

Or, this page gives automake options to force it to write more portable makefiles:

https://lists.gnu.org/archive/html/automake/2007-01/msg00002.html

Upvotes: 1

Related Questions