Subject Re: [ib-support] gpre and VisualC++
Author C R Zamana
Paul Schmidt wrote:
>
> With C.R. Zamana's help, I moved the compile time definition into the
> start of the source code, and then it was happy.

Cool.

> (...)
> Now I just need to get VC++ to compile the .e file, then the .c file,
> you said something earlier about setting up a dependancy, but didn't
> explain how. Microsoft docs were the usual we-only-go-half-way. The
> Custom build docs tell you how to get the .c but not how to finish
> the process. Maybe I'll look at another make, and then just build my
> own make file, and use Visual C++ as just a compiler....

This is a piece of my Makefile. The part that you must
be interested is the "General rules".

See if it helps you:


#-------------------------------------------------------
# Compilers and tools
#-------------------------------------------------------
CC=gcc
ESQLC=gpre
AR=ar

#-------------------------------------------------------
# Includes, Libs and Flags
#-------------------------------------------------------
LIBS=-lgds -lcrypt
CFLAGS=-O2 -pipe -DIB
FSFLAGS=-c -DIB

(...)

#-------------------------------------------------------
# General Rules
#-------------------------------------------------------

.SUFFIXES: .e .c .o

.c.o:
$(CC) -c $(CFLAGS) $< $(INCLUDE)

.e.c:
$(ESQLC) $<


--
---------------------------------------------------------------------------
zamana@... | "For a list of the ways which technology has
zamana@... | failed to improve our quality of life, press 3"
http://www.inso.com.br | Phil Reed, on Slashdot
---------------------------------------------------------------------------