www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/29/17:19:41

From: Mike_and_Beth <mandbx AT wco DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: make.info troubles
Date: Sun, 29 Nov 1998 14:11:03 -0800
Organization: Verio Northern California's Usenet News Service
Lines: 69
Message-ID: <3661C677.7842@wco.com>
NNTP-Posting-Host: venus160.wco.com
Mime-Version: 1.0
X-Mailer: Mozilla 3.04Gold (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

2-parts...

part-1::get make module plugged into info-
I've downloaded all djgpp /v2.. from simtel ftp.  "info" runs for most
of it's nodes but not for the "make" node. I've found make.info but have
no idea how to hook it up to the "info" that currently runs. what do I
need to do to be able to use make.info ?

part-2::help learning makefile syntax etc...
This all started as I was trying to learn make. and of course can't get
make to compile even a simple single .c(that does compile with gcc) The
html version of make.info currently installed on my pc as
C:\DJGPP\GNUDOCS\MAKE-3.761\MAKE_T.HTM  has tons of examples for
somewhat complex makes-but I just want a training wheel example.

Here's my makefile for a test.exe usinf tt.c C-source file.

# simple "makefile" test file for 1 .c

OBJS    = tt.o
CC      = gcc
COPTS   = -c

test.exe : $(OBJS)
	$(CC) $(COPTS) $(OBJS) -o test.exe

tt.o : tt.c
	$(CC) $(COPTS) tt.c

# end of test makefile

here's my .c source
/*  test file tt.c for make
    ------------------------------ */

#include <stdlib.h>
#include <stdio.h>

#define MAX_PRINTS  5

void plines(int nlines, char *fMessage)
{
    int maxLines=nlines;
    int lineCount;
    for(lineCount=0;lineCount<maxLines;lineCount++)
        fprintf(stdout,"%s",fMessage);
    return;
}


int main(void)
{
    char  message[]="Here's some junk!\n";

    plines(MAX_PRINTS,message);

return 0;
}

/* end file tt.c ------------------------------ */



I get a tt.o but no test.exe ?

What am I doing wrong/missing ?


Thanks - Mike Purtell

- Raw text -


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