bug-gnu-utils
[Top][All Lists]
Advanced

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

GNU Make - 3.79.1 Redhat 7.3


From: Dave Saville
Subject: GNU Make - 3.79.1 Redhat 7.3
Date: Tue, 28 Jan 2003 10:53:44 +0000 (GMT)

I am trying to get some of my code to compile on OS/2, Solaris & Red
Hat linux.

The only difference between the make files on the three platforms are
that the executables end in .exe on OS/2 and the path names.

I can get it to work on OS/2 with GNU Make version 3.76.1

I can get it to work on Solaris with whatever make it has - make -v
does not work so I guess its not gnu make but the Sun one :-)

But on Redhat 7.3  it not only won't work it's not using my rules.
Make is
GNU Make version 3.79.1

Here is the linux makefile:

----------------------------------------

.SILENT:

CC = gcc 

HOME = /home/db/src

ALL : blanks \
calander \
hexdmpr \
modify \
pager \
quicksort \
rpcping \
split \
timesync \
wipe
        @echo utilities are up to date

% : %.o
        $(CC) $*.o -o $* \
        -L$(HOME)/subs -lsocket -lnsl -lsubs
#       cp -u $* d:\bin
        @echo $* compiled
%.o : %.c
        $(CC) -D__LINUX__ -c $< \
        -I$(HOME)/subs

--------------------------------------------

make -f makefile_linux
gcc      calander.c   -o calander
calander.c:11:18: subs.h: No such file or directory

As you can see that gcc line is *not* the one it should be using.
These rules are seen and work OK on OS/2 & Solaris. 

I tried changing to the old rule style of .c.o: and it still does not
see it and uses the built in rules. Someone has sugessted using make
-r but I would like to know what make or myself are doing wrong. I
have other, very similar, makefiles that *do* work on linux.

TIA

-- 
Regards

Dave Saville





reply via email to

[Prev in Thread] Current Thread [Next in Thread]