| delorie.com/archives/browse.cgi | search |
| Message-ID: | <001101c03865$c3743880$2813ddcc@default> |
| From: | "Josh Haglund" <lhaglund AT wiktel DOT com> |
| To: | <djgpp AT delorie DOT com> |
| References: | <001b01c03860$e5469d40$2813ddcc AT default> |
| Subject: | Re: Programming |
| Date: | Tue, 17 Oct 2000 13:12:05 -0500 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
| Reply-To: | djgpp AT delorie DOT com |
I'm tring to compile my chess program with djgpp, of course.
and this is what I have so far... I can compile some other things, but it's
been awhile... somethings just slip my mine...
I have a .bat file..
DJGPP=c:\djgpp\djgpp.env
PATH=c:\djgpp\bin
and then my makefile...(It's not the best I know)
#DOS
target = DOS
CC = gcc
CFLAGS = -fomit-frame-pointer -m486 -O2
CPP = $(CC)
LDFLAGS = $(OPT) $(CFLAGS)
#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B
#asm = X86.o
opts = $(opt) -D$(target)
objects = data.o eval.o main.o board.o search.o $(asm)
includes = data.h defs.h protos.h
Josh: $(objects)
$(CC) $(LDFLAGS) -o Josh $(objects) -lm $(LIBS)
clean:
-rm -f *.o Josh
$(objects): $(includes)
.c.o:
$(CC) $(CFLAGS) $(opts) -c $*.c
.s.o:
$(AS) $(AFLAGS) -o $*.o $*.s
I get the following message when I type make:
Fatal: Error in DJGPP instalation
Environment variable DJGPP in not defined
make.exe: *** [Josh] Error 16
I can't seem to remember what to do... I need to refresh my memory.
Anyone want to help?
Josh Haglund
lhaglund AT wiktel DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |