www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/25/05:30:58

From: "Rylan" <rylan AT intekom DOT co DOT za>
Newsgroups: comp.os.msdos.djgpp
Subject: Making MAKE call NASM like it calls GCC
Date: Fri, 25 Sep 1998 11:01:50 +0200
Organization: The South African Internet Exchange
Lines: 37
Message-ID: <6ufn1k$g5o$1@news2.saix.net>
Reply-To: "Rylan" <rylan AT inbtekom DOT co DOT za>
NNTP-Posting-Host: pc25-01-p12.saix.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,

I have a small problem with make.  With this make file:

CC = gcc
CFLAGS = -m486 -s -Wall -Werror
OBJ = gplan.o gal.o ggfx.o gglobal.o gspecies.o gship.o gsound.o

gal.exe: $(OBJ); \
  $(CC) -o gal.exe $(OBJ) -lalleg -lseal -m486 -s -Wall -Werror

GCC automatically gets called for each .c specified in $(OBJ). However, why
does make not behave the same with NASM? That is, if I try to do exactly the
same with nasm just adding it and doing

asmobjs: $(ASMOBJ);\
 $(NASM) -f coff ($ASMOBJ)

make tries to call NASM once for all the .ASM files that are to be compiled?
A solution is to explicitly call NASM repeatedly and individually in the
make file, but my question is is can't make do this automatically like it
does for GCC? Or is this behaviour "hardwired" into make when it works with
GCC only?

The summation is then - is there a way to make "make" call NASM repeatedly,
automatically, like GCC gets called repeatedly and automatically on the .C
files for a given set of .O filenames?

Please reply by mail if at all possible.

Fanx!

--
Spawned By Rylan
Is truth beauty or beauty truth?


- Raw text -


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