Xref: news2.mv.net comp.os.msdos.djgpp:6686 From: Roland Exler Newsgroups: comp.os.msdos.djgpp Subject: Re: Makefile help.. Date: Thu, 01 Aug 1996 08:19:42 -0700 Organization: Institute for el. Measurement, University of Linz, Austria Lines: 52 Message-ID: <3200CB0E.13C5@jk.uni-linz.ac.at> References: <199607311119 DOT AA13175 AT mail DOT umu DOT se> NNTP-Posting-Host: sensor4.emt.uni-linz.ac.at Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------42E63A087445" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp This is a multi-part message in MIME format. --------------42E63A087445 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > I'd like little to know about makefiles.. um.. could someone show > an makefile-version of my compile bat file? > > gcc -Wall -m486 -O3 vesa.c -o vesa.o > gcc -Wall -m486 -O3 gfx.c -o gfx.o > gcc -Wall -m486 -O3 test.c -o test.o > gcc -s vesa.o gfx.o test.o -o test.exe Hi Andreas, the simple makefile included will do what you want, but make can do a lot more and there are a lot of ways to specify rules and dependencies. If you work on a bigger project I would suggest to read the docs of make. Roland +---------------------------------------+---------------------------+ I Roland Exler I EMAIL: I I Universitaet Linz I R DOT Exler AT jk DOT uni-linz DOT ac DOT at I I Institut fuer Elektrische Messtechnik I I I Altenbergerstr. 69 I Phone: I I A-4040 Linz, AUSTRIA I + 43 732 2468 9205 I +---------------------------------------+---------------------------+ --------------42E63A087445 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="MAKEFILE" # target-architecture TARGET_ARCH=-m486 # options for compiler CFLAGS=-Wall -O2 # options for linker LDFLAGS=-s LDLIBS=-lpc -lm # REMARK: compiler will be called automatically test.exe: vesa.o gfx.o test.o gcc -o $@ $^ $(LDFLAGS) $(LDLIBS) --------------42E63A087445--