request sample makefile for g77

Georg Fusz fusz@ism.tu-berlin.de
Thu Feb 22 09:11:00 GMT 2001


Here are 2 Makefiles and an include file.

If you need more help please let me know it.

"Charles D. Russell" wrote:
> 
> I would greatly appreciate a sample makefile for a g77 project that includes
> a static link library, along with any environment variables that must be
> changed from their default values.  I can't get make to pay attention to my
> FFLAGS, and will probably have more problems before I have a working
> makefile, so that having an example would save me a lot of fooling around.
> If this is an inappropriate request for this group, please let me know.  I'm
> sending from hotmail, since there were complaints about the format from our
> institutional mail handler after my last message.  (Which is Groupwise;
> administrators like it because they can see if we are opening the mail they
> send us.)
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
Georg Fusz
Technische Universitaet Berlin, Germany


Fon:
Uni.: +49 30 314 26 884
privat: +49 30 815 30 32
Handy: +49 173 20 10 696

Homepage: http://www.cadlab.tu-berlin.de/~fusz/
# $Id: Makefile,v 3.1 2001/02/15 19:40:45 fusz Exp fusz $

VPATH = ..

include ../GnuF.mak

prog_name = ../AP_IsoLine.exe

all: $(prog_name)


objects = \
hb_build_curves.o \
hb_color.o \
hb_color_rb.o \
hb_curveratureH.o \
hb_edge_curves.o \
hb_init.o \
hb_init_aps.o \
hb_init_plot.o \
hb_iso_lines.o \
hb_main.o \
hp_plot_curves.o \
hb_plot_intersection.o \
hb_plot_many_int.o \
hb_plot_single_cuts.o 

$(prog_name) : $(objects) $(makefiles) $(libraries)
	g77 -g -o $@ $(objects) $(libraries)



include $(objects:.o=.d)	


-------------- next part --------------
# -*-Makefile-*-

# $Id: GnuF.mak,v 1.4 2000/11/10 22:36:49 fusz Exp $

FC = g77
comp_flags = -g -fsource-case-preserve -O -Wall -Wimplicit -Werror

%.o: %.F
	 $(FC) $(comp_flags) -I../Include -c -o $@ $<


%.d: %.F
	$(SHELL) -ec '$(FC) -I../Include -MM $< \
	| sed '\''s/$*.F.o/$*.o $@/g'\'' > $@'

makefiles = ../GnuF.mak Makefile

libraries =  \
	../LibSurfCone/libSurfCone.a \
	../LibSurfKruppa/libSurfKruppa.a \
	../LibSurfZylinder/libSurfZylinder.a \
	../libSurfPropeller/libSurfPropeller.a \
	../LibSurfSingle/libSurfSingle.a \
	../LibPropeller/libPropeller.a \
	../LibSurface/libSurface.a \
	../LibApsInterface/libApsInterface.a \
	D:/A_Lib/libBSNorway.a \
	D:/A_Lib/libUtilsFor.a 

us_libraries =  \
	../LibDraw/libDraw.a \
	../LibAngle/libAngle.a \
	../LibPropeller/libPropeller.a \
	../LibSurface/libSurface.a \
	../LibApsInterface/libApsInterface.a \
	D:/A_Lib/libBSNorway.a \
	D:/A_Lib/libUtilsFor.a 



More information about the Cygwin mailing list