summaryrefslogtreecommitdiff
path: root/src/type/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/type/Makefile')
-rw-r--r--src/type/Makefile22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/type/Makefile b/src/type/Makefile
index 77bb93c4..b7ed4846 100644
--- a/src/type/Makefile
+++ b/src/type/Makefile
@@ -5,22 +5,25 @@
## Made by Bruno JOFRET <bruno.jofret@inria.fr>
##
## Started on Thu Nov 30 16:33:40 2006 jofret
-## Last update Thu Dec 7 15:04:27 2006 jofret
+## Last update Fri Feb 2 15:37:53 2007 jofret
##
## Copyright INRIA 2006
##
RM = rm -f
CC = gcc
-CFLAGS = -Wall -pedantic -ansi -Werror
+CFLAGS = -Wall -pedantic -ansi $(STANDARD)
AR = ar cru
RANLIB = ranlib
-OBJS = $(DCOBJ) $(FCOBJ)
+OBJS = $(DCOBJ) $(FCOBJ) $(TESTDCOBJ) $(TESTFCOBJ)
LIBS = $(DCLIB) $(FCLIB)
+TESTS = $(TESTDC) $(TESTFC)
### test
-
+TESTDCSRC = testDoubleComplex.c
+TESTDCOBJ = $(TESTDCSRC:.c=.o)
+TESTDC = testDoubleComplex
### Double Complex
DCLIB = ../lib/libDoubleComplex.a
@@ -44,11 +47,20 @@ $(DCLIB) : $(DCHEAD) $(DCOBJ)
$(FCLIB) : $(FCHEAD) $(FCOBJ)
$(AR) $@ $(FCOBJ)
$(RANLIB) $@
+
+test: $(TESTDC)
+
+
+$(TESTDC) : $(DCOBJ) $(TESTDCOBJ)
+ $(CC) $(CFLAGS) $(DCOBJ) $(TESTDCOBJ) -o $@
+
clean:
$(RM) $(OBJS)
distclean: clean
- $(RM) $(LIBS)
+ $(RM) $(LIBS) $(TESTS)
re: clean all
+retest: clean test
+