Debian Codegraph @

stdred/feros/libsrc/makefile

raw
1 # @(#)makefile 19.1 (ESO-IPG) 02/25/03 14:21:25
2 # @(#)makefile 1.4 (ESO-IPG) 2/15/94 15:15:30
3 # .COPYRIGHT: Copyright (c) 1988 European Southern Observatory,
4 # all rights reserved
5 # .TYPE make file
6 # .NAME $MIDASHOME/$MIDVERS/contrib/feros/libsrc/makefile
7 # .LANGUAGE makefile syntax
8 # .ENVIRONMENT Unix Systems.
9 # .COMMENT Compiles source files and generates "libferos.a" library.
10 #
11 # .REMARKS
12 #
13 # .AUTHOR
14 # .VERSION 1.1 880831: Implementation
15 # .VERSION 1.2 890104: Generating makefile.com for VMS systems
16 # .VERSION 2.1 901102: new directory structure CG.
17 # .VERSION 3.0 930308: Using default.mk file
18
19 include ../../../local/default.mk
20 #include ../incl/gcc.mk
21
22 # DEFINITIONS:
23
24 #DEBUG =
25 CFLAGS += $(C_OPT) $(DEBUG) $(SYS) -I$(LINC) -I$(INC)
26
27 #LLIBDIR = ../lib
28
29 LIB = $(LLIBDIR)/libech.a
30
31 OBJ0 = extract_cuts.o fit_orders.o search_lines.o \
32 fit_line.o fold_image.o follow_orders.o \
33 center_one_order.o center_all_orders.o\
34 fit_back.o glsp.o
35
36 OBJ1 = extract_spec.o rectify.o \
37 spatial_profile.o interpolate.o opt_ext.o extract_profiles.o \
38 wavecal.o fitfunc.o \
39 comp_back.o lnmatch.o rebin.o dsplint.o
40
41 # DEPENDENCIES:
42 all: $(MAKEFILE_VMS) $(LIB)
43
44 $(MAKEFILE_VMS): makefile
45 $(MAKE_VMS)
46
47 $(LIB): $(OBJ0) $(OBJ1)
48 $(AR) $(AR_OPT) $(LIB) $(OBJ0)
49 $(AR) $(AR_OPT) $(LIB) $(OBJ1)
50 $(RANLIB) $(LIB)
51
52 test_fitfunc: test_fitfunc.c $(LIB)
53 $(CC) $(CFLAGS) $? -L$(LLIBDIR) -L$(LIBDIR) $(LIB) -lmidmath -Wl,-Bstatic -lmidas -Wl,-Bdynamic -lm -o $@
54
55 check: test_fitfunc
56 ./test_fitfunc
57
58 clean:
59 rm -f $(OBJ0) $(OBJ1) test_fitfunc test_fitfunc.o