Commit f7b98669 authored by claes's avatar claes

Rule for ifor added

parent 66e960a4
...@@ -6,15 +6,17 @@ target = $@ ...@@ -6,15 +6,17 @@ target = $@
tname = $(notdir $(basename $@)) tname = $(notdir $(basename $@))
cc := gcc cc := gcc
cxx := g++ cxx := g++
f77 := g77
ld := gcc ld := gcc
ldxx := g++ ldxx := g++
linkflags := -g -L/usr/local/lib -L$(pwr_obj) -L$(pwrp_obj) -lm -lrt linkflags := -g -L/usr/local/lib -L$(pwr_obj) -L$(pwrp_obj) -lm -lrt
cflags := -c -g -Wall -DGNU_SOURCE -D_REENTRANT cflags := -c -g -Wall -D_GNU_SOURCE -D_REENTRANT
cxxflags := $(cflags) -Wno-deprecated cxxflags := $(cflags) -Wno-deprecated
f77flags :=
linkflags := -g -L/usr/local/lib -L$(pwr_lib) -L$(pwrp_lib) -lrt linkflags := -g -L/usr/local/lib -L$(pwr_lib) -L$(pwrp_lib) -lrt
csetos := -DOS_LINUX=1 -DOS=linux -DHW_X86=1 -DHW=x86 csetos := -DOS_LINUX=1 -DOS=linux -DHW_X86=1 -DHW=x86
cinc := -I$(pwr_inc) -I$(pwrp_inc) -I$(pwrp_cmn)/common/inc -I/usr/local/include -I/usr/X11R6/include -I$(jdk)/include -I$(jdk)/include/linux cinc := -I$(pwr_inc) -I$(pwrp_inc) -I$(pwrp_cmn)/common/inc -I/usr/local/include -I/usr/X11R6/include -I$(jdk)/include -I$(jdk)/include/linux
f77inc := -I$(pwr_inc) -I$(pwrp_inc)
.SUFFIXES: .SUFFIXES:
...@@ -45,6 +47,15 @@ $(pwrp_obj)/%.o : %.cpp ...@@ -45,6 +47,15 @@ $(pwrp_obj)/%.o : %.cpp
@ $(cxx) $(cxxflags) $(csetos) $(cinc) -c -o $% $(source) @ $(cxx) $(cxxflags) $(csetos) $(cinc) -c -o $% $(source)
@ ar r $(target) $% @ ar r $(target) $%
$(pwrp_obj)/%.o : %.for
@ echo "fortran77 $(notdir $(source))"
@ $(f77) $(f77flags) $(f77inc) -c -o $(target) $(source)
($(pwrp_obj)/%.o) : %.for
@ echo "fortran77 ar $(notdir $(source))"
@ $(f77) $(f77flags) $(f77inc) -c -o $% $(source)
@ ar r $(target) $%
$(pwrp_inc)/%.h: %.msg $(pwrp_inc)/%.h: %.msg
@ echo "Msg to h $(source)" @ echo "Msg to h $(source)"
@ $(pwr_exe)/tools_msg2cmsg $(source) $(pwrp_obj)/$(tname).cmsg $(pwrp_inc)/$(tname).h @ $(pwr_exe)/tools_msg2cmsg $(source) $(pwrp_obj)/$(tname).cmsg $(pwrp_inc)/$(tname).h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment