www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/07/14:05:16

Xref: news2.mv.net comp.os.msdos.djgpp:6733
From: Eric Page <eric AT autosim DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: make, long filenames, implicit rules
Date: Fri, 02 Aug 1996 10:00:37 -0600
Organization: AutoSimulations, Inc.
Lines: 46
Message-ID: <32022625.5285@autosim.com>
References: <xbu4tmqd6nf DOT fsf AT hp403 DOT den DOT mmc DOT com>
NNTP-Posting-Host: chipper.autosim.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>>	Make doesn't seem to work with implicit rules and long file names.

I to have experienced this problem with implicit rules and long
filenames.
I'm using the release of V2 djgpp (make 3.73) with Windows95.

All of the modules except those with longer that 8 chars do get compiled
in the following example.

-------------------------------------------
#makefile
MODULES =	file1 \
		file2 \
		filelongname1

include make.inc
-------------------------------------------
#make.inc
OBJ_MODULES = $(MODULES:%=%.o)

all : $(OBJ_MODULES)

%.o : %.c
	$(CC) $(COPTIONS) $< -o$@
-------------------------------------------
if I add the following then filelongname1.o gets compiled

filelongname1.o : filelongname1.c
	$(CC) $(COPTIONS) $< -o$@

but then I have to know what exactly is in MODULES in the makefile.
This is set up so that multiple makefiles in different directories
can include the same make.inc to use the SAME implicit rules.

Is there a fix in a later version of V2?

*****************************************
*                                       *
*      /  o       eric AT autosim DOT com      *
*      \ \                              *
*      / / /      Eric K. Page          *
*      \ \ \      298 - 1398  x306      *
*                                       *
*****************************************
*        http://www.autosim.com/        *
*****************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019