delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/13/01:30:47

Message-ID: <9074E89DACDDD2119C4D00805FEDBE8921848A@ormail1.orckit.com>
From: Ephraim Ben-Ishai <Ephraimbi AT orckit DOT com>
To: djgpp AT delorie DOT com
Subject: make file
Date: Thu, 13 May 1999 08:29:13 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

hello 
I want to make a general rule that will apply to all .o files. My makefile
is in the 
following format.

OBJ = obj1.0 obj2.0 obj3.o

include obj1.d
include obj2.d 
include obj3.d

#the obove files were create with GCC using the -MMD swich


foo: $(OBJ)
	echo load obj1  > b
	echo load obj2 >>b
	echo load obj3 >>b
            etc 

# I need a general rul that will compile all the obj and check there
dependencies.
# ?

.o :
	$(CC) ......


- Raw text -


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