summaryrefslogtreecommitdiff
path: root/src/test/Makefile
blob: b9e8e291c473c8908cd69226e7d3ef9b8f70224d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
##
##  -*- makefile -*-
##
## Makefile
## Made by  Bruno JOFRET <bruno.jofret@inria.fr>
##
## Started on  Thu Nov 30 16:33:40 2006 jofret
## Last update Wed Jan 31 09:27:59 2007 jofret
##
## Copyright INRIA 2006
##

NAME	=	alltest

RM	=	rm -f
CC	=	gcc
INCLUDE	=	../type
LINK	=	../lib
LIBS	=	-lm \
		-lCos -lCosh \
		-lSin -lSinh \
		-lTan -lTanh \
		-lExp
CFLAGS	=	-Werror -Wall -pedantic -ansi
CLFLAGS	=	-I$(INCLUDE) -L$(LINK) $(LIBS)
AR	=	ar cru
RANLIB	=	ranlib

SRC	=	testCos.c \
		testCosh.c \
		testSin.c \
		testSinh.c \
		testTan.c \
		testTanh.c \
		testExp.c \
		test.c

HEAD	=	test.h
OBJ	=	$(SRC:.c=.o)

all: $(NAME)

$(NAME) : $(HEAD) $(OBJ)
	$(CC) $(CFLAGS) $(OBJ) $(CLFLAGS) -o $@
clean:
	$(RM) $(OBJ)

distclean: clean
	$(RM) $(NAME)

re: clean all

test: $(NAME)
	./$(NAME)