Debian Codegraph @

install/unix/test/makefile

raw symbols SCIP
1 #
2 # .COPYRIGHT: Copyright (c) 1988-2010 European Southern Observatory,
3 # all rights reserved
4 # .TYPE make file
5 # .NAME $MIDASHOME/$MIDVERS/install/unix/test
6 # .LANGUAGE makefile syntax
7 # .ENVIRONMENT Unix Systems.
8 # .COMMENT creates executable Shell Scripts
9 # .REMARKS
10 # .AUTHOR Carlos Guirao
11 # .VERSION 1.1 910715: Implementation
12 # .VERSION 3.0 930308: Using default.mk file
13 # .VERSION 3.1 930325: -Bstatic -lXt. The shared library on SUN returns
14 # some undefined.
15 # .VERSION 3.2 930516: -Bstatic removed. Unknown in Ultrix.
16 # 100907 last modif
17
18
19 include ../../../local/default.mk
20
21 LINC = .
22 XWLIB = $(X11_LIBPATH) -lX11
23 XMLIB = $(X11_LIBPATH) $(MOTIF_LIBPATH) $(X_LIBS)
24
25 CFLAGS += $(C_OPT) $(DEBUG) $(LSYS) $(SYS) $(EDITFLAGS) $(OSSYS) $(UNDEFS) -I$(LINC) -I$(INC) $(X11INC) $(XMINC)
26
27 .for.f:
28 rm -f $*.f
29 cp $< $*.f
30 .for.o:
31 rm -f $*.f
32 cp $< $*.f
33 $(F77) $(FFLAGS) $*.f
34 rm -f $*.f
35
36 # DEPENDENCIES:
37 all:
38
39 testc.exe: testc.o
40 $(LDCC) testc.o $(SLIB) -o $@
41
42 testsiz.exe: testsiz.o
43 $(LDCC) testsiz.o $(SLIB) -o $@
44
45 testncurs.exe: testncurs.o
46 $(LDCC) testncurs.o -lncurses $(SLIB) -o $@
47
48 testf.exe: testf.o
49 $(LD77_CMD) testf.o $(SLIB) -o $@
50
51 testlib.a: testc.o testf.o
52 $(AR) $(AR_OPT) testlib.a testc.o testf.o
53
54 testx11.exe: testx11.o
55 $(LDCC) testx11.o $(XWLIB) $(SLIB) -o $@
56
57 motif_rel.exe: testxm.o
58 $(LDCC) testxm.o $(SLIB) -o $@
59
60 testxm.exe: testxm.o
61 $(LDCC) testxm.o $(XMLIB) $(SLIB) -o $@
62
63 oserror.exe: oserror.o
64 $(LDCC) oserror.o $(SLIB) -o $@
65
66 string.exe: string.o
67 $(LDCC) string.o $(SLIB) -o $@
68
69 fmod.exe: fmod.o
70 $(LDCC) fmod.o -lm $(SLIB) -o $@
71
72 math.exe: mathf.o mathc.o
73 $(LD77_CMD) mathf.o mathc.o $(SLIB) -o $@
74
75 testxm.o: testxm.c
76 $(CC) $(CFLAGS) -D_NO_PROTO -c $<
77
78 testvar.o: testvar.c
79 $(CC) $(CFLAGS) -D_NO_PROTO -c $<
80
81 clean:
82 rm -f *.exe
83 rm -f *.f
84 rm -f *.o
85 rm -f *.a