Commit 57e178b3 authored by Marco Govoni's avatar Marco Govoni
Browse files

Added json-test

parent e673db1f
# Makefile for Json-test
include ../../../make.inc
# location of needed modules
MODFLAGS= $(MOD_FLAG)../Json \
$(MOD_FLAG).
IFLAGS=
JSONTEST_OBJS = \
test.o
JSON_OBJS = ../Json/libjson.a
TLDEPS= bindir mods libs pw
#all : title tldeps wstat.x
all : title tldeps wstat.x
wstat.x : $(JSON_OBJS) $(LIBOBJS)
$(LD) $(LDFLAGS) -o test.x \
$(JSONTEST_OBJS) $(JSON_OBJS) $(LIBOBJS) $(LIBS)
# - ( cd ../../bin ; ln -fs ../West/Wstat/wstat.x . )
#tldeps:
# test -n "$(TLDEPS)" && ( cd ../.. ; $(MAKE) $(MFLAGS) $(TLDEPS) || exit 1) || :
clean :
- /bin/rm -f *.x *.o *.a *~ *_tmp.f90 *.d *.mod *.i *.L
# - /bin/rm -f ../../bin/wstat.x
title :
@echo " "
@echo "##############"
@echo "# JSON test ##"
@echo "##############"
@echo " "
include make.depend
PROGRAM test
USE json_module, ONLY : json_file
PRINT*, "HELLO WORLD!"
END PROGRAM
......@@ -4,6 +4,8 @@ default: all
all: title json_do base64_do
test: json_test_do
json_do:
if test -d Json ; then \
( cd Json ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
......@@ -14,6 +16,11 @@ base64_do:
( cd Base64 ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
json_test_do:
if test -d Json-test ; then \
( cd Json-test ; if test "$(MAKE)" = "" ; then make $(MFLAGS) all; \
else $(MAKE) $(MFLAGS) all ; fi ) ; fi
clean: json_undo base64_undo
json_undo:
......@@ -26,6 +33,11 @@ base64_undo:
( cd Base64 ; if test "$(MAKE)" = "" ; then make clean ; \
else $(MAKE) clean ; fi ) ; fi
json_test_undo:
if test -d Json-test ; then \
( cd Json-test ; if test "$(MAKE)" = "" ; then make clean ; \
else $(MAKE) clean ; fi ) ; fi
distclean: clean
title :
......
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