Makefile 587 Bytes
Newer Older
Marco Govoni's avatar
Marco Govoni committed
1
2
3
4
5
# Makefile for Json-test

include ../../../make.inc

# location of needed modules
6
MODFLAGS = $(MOD_FLAG)../Json \
Marco Govoni's avatar
Marco Govoni committed
7
8
9
          $(MOD_FLAG).

JSONTEST_OBJS = \
10
test.o
Marco Govoni's avatar
Marco Govoni committed
11
12
13

JSON_OBJS = ../Json/libjson.a

Marco Govoni's avatar
Marco Govoni committed
14
all : title test.x
Marco Govoni's avatar
Marco Govoni committed
15

Marco Govoni's avatar
Marco Govoni committed
16
test.x : $(JSONTEST_OBJS) $(LIBOBJS)
Marco Govoni's avatar
Marco Govoni committed
17
18
	$(LD) $(LDFLAGS) -o test.x \
		$(JSONTEST_OBJS) $(JSON_OBJS) $(LIBOBJS) $(LIBS)
Marco Govoni's avatar
Marco Govoni committed
19
	- ./test.x
20
	- python check.py
Marco Govoni's avatar
Marco Govoni committed
21
22

clean :
Marco Govoni's avatar
Marco Govoni committed
23
	- /bin/rm -f *.x *.o *.a *~ *_tmp.f90 *.d *.mod *.i *.L *.json
Marco Govoni's avatar
Marco Govoni committed
24
25
26
27
28
29
30
31
32

title :
	@echo "              "
	@echo "##############"
	@echo "# JSON test ##"
	@echo "##############"
	@echo "              "

include make.depend