[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun make makefile
From: |
ROLAND |
Subject: |
Sun make makefile |
Date: |
Tue, 15 Jan 2002 04:51:23 -0800 (PST) |
A have a makefile which was originally created for
Sun's make, but I need to convert it now to GNU make.
Can anybody help me with this??
I attached the makefile, perhaps someone can tell me
what to change.
Roland
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
# *********************************************************
# *
# * DOCUMENTCODE : 9501 312 199XX PBF 001 02
# * NAME : MTTU
# * DESIGN GROUP : R&S PROCESSING, BUIKEMA, AP
# * DELTA DATE : 98/06/02
# * VERSION : 2.2
# * STATUS : APPROVED
# * CLASSIFICATION : UNCLASSIFIED
# *
# *********************************************************
# MTTU makefile, project: ECCM HP STIR
# --------------------------------------------------------
# macro definitions
# MTTU modules
ALG_MOD = sysram const lnkt0 lnkt1 lnkt2 lnkd0 lnkd1
TPP_MOD = maint subt trk dcl agc prt rf bankt0 hdw tcat bankt1 eccm bankt2
DAP_MOD = maind subd dcs acq tv bankd0 clt jss tcad bankd1
# common files for asm2901
TPP0_COM = nolist lnkt0.scf sysram.scf const.scf list
TPP1_COM = nolist lnkt1.scf sysram.scf const.scf list
TPP2_COM = nolist lnkt2.scf sysram.scf const.scf list
DAP0_COM = nolist lnkd0.scf sysram.scf const.scf list
DAP1_COM = nolist lnkd1.scf sysram.scf const.scf list
# memory pages and allocation of files
TPP0 = maint subt0 trk dcl agc prt bankt0
TPP1 = subt1 hdw tcat bankt1
TPP2 = subt2 eccm rf bankt2
DAP0 = maind subd0 dcs acq tv0 bankd0
DAP1 = subd1 clt jss tcad tv1 bankd1
# some usefull macros
TPP = tpp0 tpp1 tpp2
DAP = dap0 dap1
SUBT = subt0 subt1 subt2
SUBD = subd0 subd1
TV = tv0 tv1
# default download device
DOWNTODEV = /dev/ttya
# mipdown parameters
TPP0_DOWNPARMS = 00500100 -l 32 -d $(DOWNTODEV)
TPP1_DOWNPARMS = 00500101 -l 32 -d $(DOWNTODEV)
TPP2_DOWNPARMS = 00500102 -l 32 -d $(DOWNTODEV)
DAP0_DOWNPARMS = 00500200 -l 32 -d $(DOWNTODEV)
DAP1_DOWNPARMS = 00500201 -l 32 -d $(DOWNTODEV)
CONST_DOWNPARMS = 005700 -l 32 -d $(DOWNTODEV)
# --------------------------------------------------------
# generation of mttu.mhf file
mttu.mhf : tpp0.obj tpp1.obj tpp2.obj dap0.obj dap1.obj const.dat
-mipload -o tpp0.obj 00010000 \
-o tpp1.obj 00010001 \
-o tpp2.obj 00010002 \
-o dap0.obj 00020000 \
-o dap1.obj 00020001 \
-t const.dat 000000 \
-n 9501312199 \
-l mttu.mhf
cp mttu.mhf 9501312199.mhf
equalize mttu.cnf
# defaults voor technical settings
# --------------------------------------------------------
# download object files to MTTU rack
down mttudown : tppdown dapdown constdown
tppdown : $(TPP:%=%down)
dapdown : $(DAP:%=%down)
tpp0down: $(TPP0:%=%down)
tpp1down: $(TPP1:%=%down)
tpp2down: $(TPP2:%=%down)
dap0down: $(DAP0:%=%down)
dap1down: $(DAP1:%=%down)
subtdown : $(SUBT:%=%down)
subddown : $(SUBD:%=%down)
tvdown : $(TV:%=%down)
# --------------------------------------------------------
# download of single object files
$(TPP0:%=%down) : $$(@:%down=%.obj)
mipdown -o $(@:%down=%.obj) $(TPP0_DOWNPARMS)
$(TPP1:%=%down) : $$(@:%down=%.obj)
mipdown -o $(@:%down=%.obj) $(TPP1_DOWNPARMS)
$(TPP2:%=%down) : $$(@:%down=%.obj)
mipdown -o $(@:%down=%.obj) $(TPP2_DOWNPARMS)
$(DAP0:%=%down) : $$(@:%down=%.obj)
mipdown -o $(@:%down=%.obj) $(DAP0_DOWNPARMS)
$(DAP1:%=%down) : $$(@:%down=%.obj)
mipdown -o $(@:%down=%.obj) $(DAP1_DOWNPARMS)
datdown constdown : const.dat
mipdown -t const.dat $(CONST_DOWNPARMS)
# --------------------------------------------------------
# printing MTTU list files in linkage sequence
print mttuprint printall : algprint tppprint dapprint
tppprint : $(TPP:%=%print)
dapprint : $(DAP:%=%print)
algprint : $(ALG_MOD:%=%print)
tpp0print : $(TPP0:%=%print)
tpp1print : $(TPP1:%=%print)
tpp2print : $(TPP2:%=%print)
dap0print : $(DAP0:%=%print)
dap1print : $(DAP1:%=%print)
subtprint : $(SUBT:%=%print)
subdprint : $(SUBD:%=%print)
tvprint : $(TV:%=%print)
# --------------------------------------------------------
# printing of single MTTU list files
$(ALG_MOD:%=%print) : $$(@:%print=%.lst)
enscript -fCourier7 $(@:%print=%.lst)
$(TPP0:%=%print) $(TPP1:%=%print) $(TPP2:%=%print) $(DAP0:%=%print)
$(DAP1:%=%print) : $$(@:%print=%.obj)
enscript -fCourier7 $(@:%print=%.lst)
# --------------------------------------------------------
# linking module object files into object code pages
mttu.obj : tpp.obj dap.obj
tpp.obj : $(TPP:%=%.obj)
dap.obj : $(DAP:%=%.obj)
tpp0.obj : $(TPP0:%=%.obj)
sort -u $(TPP0:%=%.obj) > tpp0.obj
tpp1.obj : $(TPP1:%=%.obj)
sort -u $(TPP1:%=%.obj) > tpp1.obj
tpp2.obj : $(TPP2:%=%.obj)
sort -u $(TPP2:%=%.obj) > tpp2.obj
dap0.obj : $(DAP0:%=%.obj)
sort -u $(DAP0:%=%.obj) > dap0.obj
dap1.obj : $(DAP1:%=%.obj)
sort -u $(DAP1:%=%.obj) > dap1.obj
subt.obj : $(SUBT:%=%.obj)
subd.obj : $(SUBD:%=%.obj)
tv.obj : $(TV:%=%.obj)
const.dat : const.lst
awk '$$4 == "RMB" && \
$$5 == "&D1" && \
index($$2, "41") == 1 {print $$2,$$7}' const.lst > const.dat
# --------------------------------------------------------
# assemble of single module source files
$(TPP0:%=%.obj) : $$(@:%obj=%scf) $(TPP0_COM)
-rm -f $(@) $(@:%obj=%lst)
asm2901 -i $(TPP0_COM) $(@:%obj=%scf) -o $(@) -l $(@:%obj=%lst)
sed -e '/#nolist/,/#list/d' $(@:%obj=%lst) > $(@:%obj=%lis)
mv $(@:%obj=%lis) $(@:%obj=%lst)
$(TPP1:%=%.obj) : $$(@:%obj=%scf) $(TPP1_COM)
-rm -f $(@) $(@:%obj=%lst)
asm2901 -i $(TPP1_COM) $(@:%obj=%scf) -o $(@) -l $(@:%obj=%lst)
sed -e '/#nolist/,/#list/d' $(@:%obj=%lst) > $(@:%obj=%lis)
mv $(@:%obj=%lis) $(@:%obj=%lst)
$(TPP2:%=%.obj) : $$(@:%obj=%scf) $(TPP2_COM)
-rm -f $(@) $(@:%obj=%lst)
asm2901 -i $(TPP2_COM) $(@:%obj=%scf) -o $(@) -l $(@:%obj=%lst)
sed -e '/#nolist/,/#list/d' $(@:%obj=%lst) > $(@:%obj=%lis)
mv $(@:%obj=%lis) $(@:%obj=%lst)
$(DAP0:%=%.obj) : $$(@:%obj=%scf) $(DAP0_COM)
-rm -f $(@) $(@:%obj=%lst)
asm2901 -i $(DAP0_COM) $(@:%obj=%scf) -o $(@) -l $(@:%obj=%lst)
sed -e '/#nolist/,/#list/d' $(@:%obj=%lst) > $(@:%obj=%lis)
mv $(@:%obj=%lis) $(@:%obj=%lst)
$(DAP1:%=%.obj) : $$(@:%obj=%scf) $(DAP1_COM)
-rm -f $(@) $(@:%obj=%lst)
asm2901 -i $(DAP1_COM) $(@:%obj=%scf) -o $(@) -l $(@:%obj=%lst)
sed -e '/#nolist/,/#list/d' $(@:%obj=%lst) > $(@:%obj=%lis)
mv $(@:%obj=%lis) $(@:%obj=%lst)
# --------------------------------------------------------
# treatment of special files
$(ALG_MOD:%=%.lst) : $$(@:%lst=%scf)
-rm -f $(@)
asm2901 -i $(@:%lst=%scf) -o /dev/null -l $(@)
$(SUBT:%=%.scf) : subt.scf
rm -f $(@)
ln subt.scf $(@)
$(SUBD:%=%.scf) : subd.scf
rm -f $(@)
ln subd.scf $(@)
$(TV:%=%.scf) : tv.scf
rm -f $(@)
ln tv.scf $(@)
list nolist:
echo '*#list' > list
echo '*#nolist' > nolist
# --------------------------------------------------------
# download MTTU modules from SCCS database
get dbget mttuget :
dbget -r99 /eccmshp/mttu/$(ALG_MOD:%=%.scf)
$(TPP_MOD:%=%.scf) $(DAP_MOD:%=%.scf) mttu.cnf
# --------------------------------------------------------
# cleanup directory, removes all assembler output
empty cleanup :
-rm -f *.obj *.lst $(SUBT:%=%.scf) $(SUBD:%=%.scf) $(TV:%=%.scf) \
list nolist const.dat makefile
- Sun make makefile,
ROLAND <=