2
# .COPYRIGHT: Copyright (c) 1988-2010 European Southern Observatory,
5
# .NAME $MIDASHOME/$MIDVERS/install/unix/test
6
# .LANGUAGE makefile syntax
7
# .ENVIRONMENT Unix Systems.
8
# .COMMENT creates executable Shell Scripts
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
15
# .VERSION 3.2 930516: -Bstatic removed. Unknown in Ultrix.
19
include ../../../local/default.mk
22
XWLIB = $(X11_LIBPATH) -lX11
23
XMLIB = $(X11_LIBPATH) $(MOTIF_LIBPATH) $(X_LIBS)
25
CFLAGS = $(C_OPT) $(DEBUG) $(LSYS) $(SYS) $(EDITFLAGS) $(OSSYS) $(UNDEFS) -I$(LINC) -I$(INC) $(X11INC) $(XMINC)
40
$(LDCC) testc.o $(SLIB) -o $@
42
testsiz.exe: testsiz.o
43
$(LDCC) testsiz.o $(SLIB) -o $@
45
testncurs.exe: testncurs.o
46
$(LDCC) testncurs.o -lncurses $(SLIB) -o $@
49
$(LD77_CMD) testf.o $(SLIB) -o $@
51
testlib.a: testc.o testf.o
52
$(AR) $(AR_OPT) testlib.a testc.o testf.o
54
testx11.exe: testx11.o
55
$(LDCC) testx11.o $(XWLIB) $(SLIB) -o $@
57
motif_rel.exe: testxm.o
58
$(LDCC) testxm.o $(SLIB) -o $@
61
$(LDCC) testxm.o $(XMLIB) $(SLIB) -o $@
63
oserror.exe: oserror.o
64
$(LDCC) oserror.o $(SLIB) -o $@
67
$(LDCC) string.o $(SLIB) -o $@
70
$(LDCC) fmod.o -lm $(SLIB) -o $@
72
math.exe: mathf.o mathc.o
73
$(LD77_CMD) mathf.o mathc.o $(SLIB) -o $@
76
$(CC) $(CFLAGS) -D_NO_PROTO -c $<
79
$(CC) $(CFLAGS) -D_NO_PROTO -c $<