delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/17/12:01:02

From: fredex AT fcshome DOT stoneham DOT ma DOT us
Message-Id: <199607170134.VAA03493@fcshome.stoneham.ma.us>
Subject: Re: Problem Compiling via Make
To: breezy AT dali DOT math DOT swt DOT edu (Bresie)
Date: Tue, 16 Jul 1996 21:34:17 -0400 (EDT)
Cc: djgpp AT delorie DOT com
In-Reply-To: <4sh3m5$gj1@pirates.cs.swt.edu> from "Bresie" at Jul 16, 96 10:04:53 pm

Thinking furiously, Bresie wrote:
> 
> When I did the, I found that my CFLAGS were not being included (or so I 
> assume) when compiled (they are not displayed; I do not know if they are 
> not displayed to begin with but anyway...)
> 
> Ultimately, the output of the compilation looks something along the lines of:
> 
> gcc -c init.c
> 
> without anything else being displayed.
> 
> Am I missing something? 

Yes, see below.

> 
> My makefile looks like this:
> LIB_FLAGS = -L/C/djgpp/LIB -lxlib
> CFLAGS = $(LIB_FLAGS -O2)
> CC = gcc $(CFLAGS)


The line (from your makefile as shown above):

	CFLAGS = $(LIB_FLAGS -O2)

Should be changed so that it reads:

	CFLAGS = $(LIB_FLAGS) -O2

Fred
-- 
-------------------------------------------------------------------------------
 .----    Fred Smith    /                        Office: fred AT computrition DOT com 
( /__  ,__.   __   __ /  __   : /                                 508-663-2524 
 /    /  /   /__) /  /  /__) .+'           Home: fredex AT fcshome DOT stoneham DOT ma DOT us 
/    /  (__ (___ (__(_ (___ / :__                                 617-438-5471 
-------------------------------- Jude 1:24,25 ---------------------------------

- Raw text -


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