summaryrefslogtreecommitdiff
path: root/src/type/Makefile
diff options
context:
space:
mode:
authorjofret2006-12-01 15:37:45 +0000
committerjofret2006-12-01 15:37:45 +0000
commit06da3df2ff648931ce65ed91bf516062828b2354 (patch)
treec25340cd9bc5b38130cc835751e9ccf9ac7d61ff /src/type/Makefile
parentb1c30f678966e6a6edc97b6012a5e89a36a8873f (diff)
downloadscilab2c-06da3df2ff648931ce65ed91bf516062828b2354.tar.gz
scilab2c-06da3df2ff648931ce65ed91bf516062828b2354.tar.bz2
scilab2c-06da3df2ff648931ce65ed91bf516062828b2354.zip
Quite a good DouComplex lib...
Will probably be improved later...
Diffstat (limited to 'src/type/Makefile')
-rw-r--r--src/type/Makefile46
1 files changed, 35 insertions, 11 deletions
diff --git a/src/type/Makefile b/src/type/Makefile
index 8b34532e..4894baa8 100644
--- a/src/type/Makefile
+++ b/src/type/Makefile
@@ -5,28 +5,52 @@
## Made by Bruno JOFRET <bruno.jofret@inria.fr>
##
## Started on Thu Nov 30 16:33:40 2006 jofret
-## Last update Thu Nov 30 17:52:34 2006 jofret
+## Last update Fri Dec 1 16:21:12 2006 jofret
##
## Copyright INRIA 2006
##
-NAME = dummy
+NAME = complex
RM = rm -f
CC = gcc
-CFLAGS = -Wall -pedantic
+CFLAGS = -Wall -pedantic -ansi
+AR = ar cru
+RANLIB = ranlib
-SRC = doubleComplex.c \
- main.c
+OBJS = $(DCOBJ) $(FCOBJ)
+LIBS = $(DCLIB) $(FCLIB)
-HEADERS = doubleComplex.h
+### test
-OBJ = $(SRC:.c=.o)
-all: $(SRC) $(HEADERS) $(OBJ)
- $(CC) $(CFLAGS) $(OBJ) -o $(NAME)
+### Double Complex
+DCLIB = libDoubleComplex.a
+DCSRC = doubleComplex.c
+DCHEAD = doubleComplex.h
+DCOBJ = $(DCSRC:.c=.o)
+
+### Float Complex
+FCLIB = libFloatComplex.a
+FCSRC = floatComplex.c
+FCHEAD = floatComplex.h
+FCOBJ = $(FCSRC:.c=.o)
+
+
+all: $(LIBS)
+
+$(DCLIB) : $(DCOBJ)
+ $(AR) $@ $<
+ $(RANLIB) $@
+
+$(FCLIB) : $(FCOBJ)
+ $(AR) $@ $<
+ $(RANLIB) $@
clean:
- $(RM) $(OBJ)
+ $(RM) $(OBJS)
distclean: clean
- $(RM) $(NAME) \ No newline at end of file
+ $(RM) $(NAME) $(LIBS)
+
+test: $(NAME)
+