Topic: Makefile problem
Author: ddkilzer@iastate.edu (David D Kilzer)
Date: 1995/06/26 Raw View
[Note follow-up to comp.os.ms-windows.programmer.tools]
falken@Minsk.DoCS.UU.SE (Jonas Karlsson) writes:
>I have this following Makefile for a UNIX system. I'm running
>Visual C++ 2.0 on a Windows NT computer. How can I "convert"
>the Makefile so I can compile the code?
>
>[Makefile elided]
Well, last I knew, there was nmake for DOS--not sure if it would work
under NT or not. You might also try the GNU make package if you already
have a C compiler (although it would use a Makefile too...hmmm).
You might also try the FAQ for comp.os.ms-windows.programmer.tools at:
ftp://rtfm.mit.edu/pub/usenet/comp.os.ms-windows.programmer.tools/
Dave
--
David D. Kilzer \ Emergency Holographic Doctor:
ddkilzer@iastate.edu / ``Don't worry, I'm not going to kiss you.
Computer Engineer 4 \ I'm only adjusting the restraint.''
Iowa State University, Ames / _Star_Trek_Voyager:__Phage_
Author: falken@Minsk.DoCS.UU.SE (Jonas Karlsson)
Date: 1995/06/26 Raw View
I have this following Makefile for a UNIX system. I'm running
Visual C++ 2.0 on a Windows NT computer. How can I "convert"
the Makefile so I can compile the code?
-----------------------
CC=cc
CFLAGS=-O
LIBS=-L./ -lgd -lm
all: libgd.a gddemo giftogd
gddemo: gddemo.o libgd.a gd.h gdfonts.h gdfontl.h
$(CC) gddemo.o -o gddemo $(LIBS)
giftogd: giftogd.o libgd.a gd.h
$(CC) giftogd.o -o giftogd $(LIBS)
libgd.a: gd.o gdfontl.o gdfonts.o gd.h gdfonts.h gdfontl.h
rm -f libgd.a
$(AR) rc libgd.a gd.o gdfontl.o gdfonts.o
webgif: webgif.o libgd.a gd.h
$(CC) webgif.o -o webgif $(LIBS)
clean:
rm -f *.o *.a gddemo giftogd
-----------------------------
The contents of the directory looks like this:
Makefile
gd.c
gd.h
gddemo.c
gdfontl.c
gdfontl.h
gdfonts.c
gdfonts.h
giftogd.c
mathmake.c
mtables.c
webgif.c
You can answer me privately through e-mail!
-----------------------------------------------------------------------------
Jonas Karlsson
falken@csd.uu.se or jonas@linq.se