delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/17/19:46:39

Xref: news2.mv.net comp.os.msdos.djgpp:6094
From: breezy AT dali DOT math DOT swt DOT edu (Bresie)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem Compiling via Make
Date: 16 Jul 1996 23:40:54 GMT
Organization: Computer Science Department, Southwest Texas State University
Lines: 62
Message-ID: <4sh9a6$gj1@pirates.cs.swt.edu>
References: <4sh3m5$gj1 AT pirates DOT cs DOT swt DOT edu>
NNTP-Posting-Host: dali.math.swt.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Bresie (breezy AT dali DOT math DOT swt DOT edu) wrote:
: I hope that I have just not overlooked it in the FAQs or the regular Info, 
: but

: I have just started using djgpp and have made a few programs, which I 
: decided would eventually need a makefile to make things easier.

: 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? 

I also forgot to mention that when linking for the main program, it complains
about undefined items.  I have my DJGPP environment variable set, and I also
have tried the makefile below with -LC:\DJGPP\LIB.  

Also I am trying to use the libxlib.a file.  I have placed the header files in
the include and the current directory (after it did not seem to find it in
the include directory).

Thanks again!

Eric Bresie
breezy AT dali DOT math DOT swt DOT edu 

: My makefile looks like this:

: # constants
: ALL = main.o init.o inputq.o
: LIB_FLAGS = -L/C/djgpp/LIB -lxlib
: CFLAGS = $(LIB_FLAGS -O2)
: RM = del
: CC = gcc $(CFLAGS)

: # main program
: main.exe:      $(ALL)
: 	$(CC) $(ALL) -o main.exe

: main.o:        main.c main.h consts.h init.h defines.h xlib.h inputq.h
: 	$(CC) -c main.c

: init.o:        init.c consts.h
: 	$(CC) -c init.c

: inputq.o:        inputq.c inputq.h
: 	$(CC) -c inputq.c

: clean:  
: 	$(RM) *.o

: ---------------------------------------------------------------------
: Eric Bresie
: breezy AT dali DOT math DOT swt DOT edu

- Raw text -


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