axp-gcc-pedantic.mk

来自「有限元学习研究用源代码(老外的),供科研人员参考」· MK 代码 · 共 52 行

MK
52
字号
SHELL=/bin/sh

options= -DUSE_PRAGMA_INLINE -DGLTOOLS  -DPEDANTIC -Dfortran_ 
pdelibs=  -lpdelib -lgltools

############################################################################
cc=gcc
ccinc= -I$(INCDIR)
ccopt= -g -ansi -pedantic -pedantic-errors -Wall\
 -Wmissing-prototypes -Wstrict-prototypes  
############################################################################
cxx=cxx
cxxinc=-I. -I$(INCDIR)
cxxopt=-g0 -O4 -DKASKADE_LIB -DPRAGMA_DEFINE_TEMPLATE -DNO_COMPLEX_TEMPLATE


############################################################################
fc=f77
ffopt= -fast -O5 -tune host -i4 -r8


############################################################################
fortlibs=-ldxml  -lfor -lUfor -lFutil
grlibs=-l$(MESA)GL -l$(MESA)GLU -lXext  -lX11  -lm


loadlibes= $(pdelibs) $(fortlibs) $(grlibs)
ldflags=-L$(LIBDIR) $(track)
shldflags=-shared -all -expect_unresolved '*'
ranlib=true
############################################################################
# COMPILER/LIBRARY SYSDEPS
#---------------------------------------------------------------------------
# -DNOPROTO  : no protoyping
# -DNOSTDARG : no /usr/include/stdarg.h
# -DNOACPP   : no ansi cpp (token pasting)
#  (these options can be combined)
#---------------------------------------------------------------------------
# -DBSD_TIMER   : use rusage()
# -DPOSIX_TIMER : use times()
# -DANSI_TIMER  : use clock() (default)
#  (these options cannot be combined)
#---------------------------------------------------------------------------
# How the fortran compiler generates external names to be called from C:
# -DFORTRAN   : CALL FOO(BAR) -> FOO(bar);
# -DFORTRAN_  : CALL FOO(BAR) -> FOO_(bar);
# -Dfortran   : CALL FOO(BAR) -> foo(bar);
# -Dfortran_  : CALL FOO(BAR) -> foo_(bar); (default)
#  (these options cannot be combined)
#---------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?