home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!manvm1.vnet.ibm.COM!GSCOTT
- From: GSCOTT@manvm1.vnet.ibm.COM
- Subject: (none)
- Message-ID: <9211180517.AA15811@life.ai.mit.edu>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- Distribution: gnu
- Date: Wed, 18 Nov 1992 03:59:22 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 76
-
- This problem is with make 3.62 running on AIX 3.2.2
-
- Problem: improper expansion of "$<" when using the following makefile.
-
- ---
-
- CC = gcc
- CFLAGS = -g -Wall
- LIBS = -lm
- PROG = lfa_null
-
- OBJS = lfan_main.o lfan_track.o lfan_bf.o tb_bf.o
- SOURCES = lfan_main.c lfan_track.c lfan_bf.c tb_bf.c
- INCLUDES = lfa_null.h tb.h
-
- all: $(PROG)
-
- $(PROG): $(OBJS)
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
-
- $(OBJS): $(SOURCES) $(INCLUDES)
- $(CC) $(CFLAGS) -c $<
-
- ---
-
- Below is a script illustrating the problem.
- /bin/make is the default AIX make
- /usr/local/gnu/make is gnu make 3.62
-
- ---
-
- $ /bin/make -n
-
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -c lfan_track.c
- gcc -g -Wall -c lfan_bf.c
- gcc -g -Wall -c tb_bf.c
- gcc -g -Wall -o lfa_null lfan_main.o lfan_track.o lfan_bf.o tb_bf.o -lm
-
- $ /usr/local/gnu/make -n
-
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -o lfa_null lfan_main.o lfan_track.o lfan_bf.o tb_bf.o -lm
-
- ---
-
- Below is a script of what happens when the files must be retrieved
- with RCS. Note, it retrieves all of the correct files, but still only
- tries to compile the first file in OBJS
-
- ---
-
- $ /usr/local/gnu/make -n
-
- test -f lfan_main.c || co RCS/lfan_main.c,v lfan_main.c
- test -f lfan_track.c || co RCS/lfan_track.c,v lfan_track.c
- test -f lfan_bf.c || co RCS/lfan_bf.c,v lfan_bf.c
- test -f tb_bf.c || co RCS/tb_bf.c,v tb_bf.c
- test -f lfa_null.h || co RCS/lfa_null.h,v lfa_null.h
- test -f tb.h || co RCS/tb.h,v tb.h
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -c lfan_main.c
- gcc -g -Wall -o lfa_null lfan_main.o lfan_track.o lfan_bf.o tb_bf.o -lm
-
- ---
-
- George Scott
- gms2@po.cwru.edu
- gscott@manvm1.vnet.ibm.com
-
-
-