delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/16/19:49:14

Date: Tue, 16 Jul 1996 19:39:34 -0400
Message-Id: <199607162339.TAA05679@delorie.com>
From: DJ Delorie <dj>
To: breezy AT dali DOT math DOT swt DOT edu
CC: djgpp AT delorie DOT com
In-reply-to: <4sh3m5$gj1@pirates.cs.swt.edu> (breezy@dali.math.swt.edu)
Subject: Re: Problem Compiling via Make

> When I did the, I found that my CFLAGS were not being included (or so I 
>
> CFLAGS = $(LIB_FLAGS -O2)
> 	$(CC) -c main.c

If you explicitely include the rules to compile something, you must
include all the parts.  The last line above doesn't specify $(CFLAGS),
so you don't get any.  If you omit the rules to build objects (*.o),
make has a built-in rule that looks like "$(CC) $(CFLAGS) -c $*.c"

- Raw text -


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