Re: Need help for an old makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I installed "patch" command. Then I read . After applying the patch, I run
"make" again as the guide said. Here is the error I got:super::
m4 -s -Ulen -Uindex /home/ubuntu/splash2/codes/null_macros/c.m4.null decs.H
> decs.h
/bin/sh: m4: not found
make: *** [decs.h] Error 127

Seams that we got back to the first error again!!&-(>-(%-| I looked the
makefile to trace any changes by that patch. Here is the makefile (I
uploaded the directory before, this is the new makefile):
TARGET = OCEAN
OBJS = jacobcalc.o jacobcalc2.o laplacalc.o linkup.o main.o multi.o slave1.o
slave2.o subblock.o

include ../../../Makefile.config

decs.h: decs.H
jacobcalc.c: decs.h
linkup.c: decs.h
slave1.c: decs.h
jacobcalc2.c: decs.h
main.c: decs.h
slave2.c: decs.h
laplacalc.c: decs.h
multi.c: decs.h
subblock.c: decs.h

The patch I think made some changes to makefile.config. Here it is:
CC := gcc
CFLAGS := -O3 -pthread -D_POSIX_C_SOURCE=200112
#CFLAGS := -g3 -pthread -D_POSIX_C_SOURCE=200112
CFLAGS := $(CFLAGS) -Wall -W -Wmissing-prototypes -Wmissing-declarations
-Wredundant-decls -Wdisabled-optimization
CFLAGS := $(CFLAGS) -Wpadded -Winline -Wpointer-arith -Wsign-compare
-Wendif-labels
LDFLAGS := -lm

BASEDIR := $(HOME)/splash2/codes
MACROS := $(BASEDIR)/null_macros/c.m4.null
M4 := m4 -s -Ulen -Uindex

x = *

$(TARGET): $(OBJS)
    $(CC) $(OBJS) $(CFLAGS) -o $(TARGET) $(LDFLAGS)

clean:
    rm -rf *.c *.h *.o $(TARGET)

.SUFFIXES:
.SUFFIXES:    .o .c .C .h .H

.H.h:
    $(M4) $(MACROS) $*.H > $*.h

.C.c:
    $(M4) $(MACROS) $*.C > $*.c

.c.o:
    $(CC) -c $(CFLAGS) $*.c

.C.o:
    $(M4) $(MACROS) $*.C > $*.c
    $(CC) -c $(CFLAGS) $*.c

annoying m4 is still there....:-(



Sivan Greenberg-2 wrote:
> 
> 
> On Thu, 2008-05-01 at 01:12 -0700, mahmoodn wrote:
>> I followed the link steps until:
>> patch -p1 < splash2-modified.patch
>> 
>> here is the output of this command:
>> mahmood@magma:splash2$ patch -p1 <splash2-modified.patch 
>> The program 'patch' is currently not installed.  You can install it by
>> typing:
>> sudo apt-get install patch
>> bash: patch: command not found
>> 
>> Is "patch" related to compiler or OS?
> 
> It is not, patch is a utility program to apply patches that were usually
> created using the 'diff' command. follow the installation instructions
> provided to you by your distro (debian/ubuntu) and install it to be able
> to use it.
> 
> Sivan
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Need-help-for-an-old-makefile-tp16722559p17058389.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux