name=`basename $1 .obj`
-LIBS= $H316/lib/fortran/fort.lib\
- $H316/lib/iolib/io.lib\
- $H316/lib/fortran/custom.lib
+LIBS="$H316/lib/fortran/lib/flib1.lib\
+ $H316/lib/fortran/lib/flib2.lib\
+ $H316/lib/fortran/lib/flib3.lib\
+ $H316/lib/iolib/io.lib\
+"
echo "rest $H316/sys/super2.sys" > $name.go
echo "at ptr $name.obj" >> $name.go
echo "go" >> $name.go
for library in $LIBS; do
- if [ ! -e $library]; then
+ if [ ! -e "$library" ]; then
echo "Error: $library not found!"
exit 3;
fi
echo "! echo -e \"\\n************************\"" >> $name.go
echo "run 1000" >> $name.go
echo "! echo -e \"************************\"" >> $name.go
-echo "quit" >> $name.go
+#echo "quit" >> $name.go
+
+
#cat $name.go
h316 $name.go
OBJ_DIR = obj
LIB_DIR = lib
-MODULES = f$$w4 f$$w1 pchar fpatch uc lpchar vpunch
+MODULES = uc f$$w4 f$$w1 pchar fpatch lpchar vpunch
FRTN_COMMAND = frtn
ASM_COMMAND = asm
##########################################
-default : $(OBJ_FILES_FULL)
+libs : $(OBJ_FILES_FULL)
buildlib.sh
+obj : $(OBJ_FILES_FULL)
+
$(OBJ_FILES_FULL):$(OBJ_DIR)/%.obj:$(SRC_DIR)/%.asm
@echo Building: $(subst $$,\$$,$@)
@if [ ! -d $(OBJ_DIR) ]; then mkdir $(OBJ_DIR); fi
@ rm -f $@
@ cd $(OBJ_DIR) && $(ASM_COMMAND) ../$(subst $$,\$$,$^)
+ @ cd $(OBJ_DIR) && ldc -s -l $(notdir $(subst $$,\$$,$@))
+
clean:
@echo Cleaning up.
org:
./makeorg.sh
-.PHONY: clean all org
+.PHONY: clean all org obj libs
fi
tdir=$PWD
cd $ORG_OBJDIR
- cat $tdir/$ORG_LIBDIR/*$LIB_SUFFIX | ldc -s
+ cat $tdir/$ORG_LIBDIR/*$LIB_SUFFIX | ldc -s -l
cd $tdir
}
obj object objects : $(OWN_2)
$(OWN_3): $(OWN_2)
- cat $(subst $$,\$$,$(OWN_2)) | ldc -s
+ cat $(subst $$,\$$,$(OWN_2)) | ldc -s -l
$(OWN_2):%.obj:src/%.asm
asm $(subst $$,\$$,$^)
ASM=$(H316)/bin/asm
FRTN=$(H316)/bin/frtn
-build/apfel2.obj : src/apfel2.f
+build/punchomat.obj : src/punchomat.f
@if [ ! -d build ]; then mkdir build; fi
- $(FRTN) src/apfel2.f && mv apfel2.obj build
+ $(FRTN) src/punchomat.f && mv punchomat.obj build
clean :
@rm -rf *.obj build/ *.lst *.go *.par