Xref: news-dnh.mv.net comp.os.msdos.djgpp:2903 Path: news-dnh.mv.net!mv!news.sprintlink.net!tank.news.pipex.net!pipex!lade.news.pipex.net!pipex!mantis!mantis!not-for-mail From: olly AT mantis DOT co DOT uk (Olly Betts) Newsgroups: comp.os.msdos.djgpp Subject: Refering to contrib libraries (e.g. GRX) in makefiles Date: 27 Oct 1995 16:59:13 +0100 Organization: techn-ol-ogy Lines: 17 Nntp-Posting-Host: sunforest.mantis.co.uk To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp I'm writing a program which uses GRX 2.0, and want to write a makefile which doesn't rely on the drive or directory DJGPP is installed in. I'm using DJGPP v2, and GRX lives in CONTRIB\GRX20, but I can't see how to tell the compiler where to look for include files or LIBGRX20.A without something like -IC:/DJGPPV2/CONTRIB/GRX20/INCLUDE and a similar -L in the makefile. But this means the makefile needs editing if someone has DJGPP installed on a different drive/directory. The GRX2.0 test programs "cheat" as they know they are in CONTRIB\GRX20\TEST and so can use ../INCLUDE to find the include files. Thanks in advance, Olly -- cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass