[fpc-pascal]RE: make files

Jeff Pohlmeyer yetanothergeek at yahoo.com
Mon Sep 8 18:36:43 CEST 2003

> Can someone give me a simple example of  a makefile suitable for
> just simple compiling of one file ? I am so used to running FPC
> from the command line that make is foreign to me. 



	ppc386 somefile.pas

	ppc386 -vewh -gl -Crtoi somefile.pp

	rm -f *.o *.ppu

install: all
	cp somefile /usr/local/bin

	rm -f /usr/local/bin/somefile


  The #!/bin/bash line isn't really necessary unless you 
  have some shell-specific commands in your makefile.
  ( It is best to avoid this if possible )

  The indentation of the commands below each section MUST
  be done with tabs, not spaces. This always catches me 
  because I have have tab emulation turned on in my editor.

 Identifiers after the colon on a section line insure that
 the other section is up to date.

  The word "all" isn't magic, it is just conventional.
  If you invoke make without any arguments, it will default
  to the first section, regardless of what it is named.

  Lots more info here:

  - Jeff

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

More information about the fpc-pascal mailing list