1
# .COPYRIGHT: Copyright (c) 1988-2009 European Southern Observatory,
4
# .NAME $MIDASHOME/$MIDVERS/system/idiserver/src/makefile
5
# .LANGUAGE makefile syntax
6
# .ENVIRONMENT Unix Systems.
7
# .COMMENT Compiles source files and generates "idiserv" IDI server
13
# .VERSION 3.1 890629 add Xtest.exe KB
14
# .VERSION 4.1 901203 New directory structure. CG.
15
# .VERSION 4.2 901221 add fontsup.exe KB
16
# .VERSION 4.3 910923 throw out preinstall stuff for VMS KB
17
# .VERSION 4.4 911220 throw out creadsp.c (merged with wndcrea.c) KB
18
# .VERSION 3.0 930308 Using default.mk file
19
# .VERSION 3.1 940311 Only executables. CG.
24
include ../../../local/default.mk
28
CFLAGS = $(C_OPT) $(DEBUG) $(MEM_OPT) $(SYS) -I$(INC) $(X11INC)
30
LLIB0= -L$(LIBDIR) -lmidas
31
LLIB1 = -L$(LIBDIR) -lgmidas -lmidas
32
LLIB2 = -L$(LIBDIR) -ldisp -lgen -lsubplot -lidi -lgmidas -lmidas
34
LIB0 = $(LIBDIR)/libmidas.a
36
LIB1 = $(LIBDIR)/libgmidas.a \
39
LIB2 = $(LIBDIR)/libdisp.a \
41
$(LIBDIR)/libsubplot.a \
43
$(LIBDIR)/libgmidas.a \
47
OUT = $(M)/$(IDISERV).exe $(M)/killidi.exe \
48
$(M)/fontsup.exe Xtest.exe
51
xwimg.o killidi.o fontsup.o Xtest.o cursdemo.o textdemo.o
54
all: $(MAKEFILE_VMS) $(OUT) ididebug idigo
56
$(MAKEFILE_VMS): makefile
59
$(M)/idiserv.exe: idiserv.o xwimg.o $(LIB2)
60
$(LDCC) idiserv.o xwimg.o $(LLIB2) $(XWLIB) $(MLIB) $(SLIB) -o $@
63
$(M)/killidi.exe: killidi.o $(LIB0)
64
$(LDCC) killidi.o ../libsrc/idiclt.o $(LLIB0) $(MLIB) $(SLIB) -o $@
67
$(M)/fontsup.exe: fontsup.o $(LIB0)
68
$(LDCC) fontsup.o $(LLIB0) $(XWLIB) $(MLIB) $(SLIB) -o $@
71
Xtest.exe: Xtest.o cursdemo.o textdemo.o $(LIB0)
72
$(LDCC) Xtest.o cursdemo.o textdemo.o $(LLIB0) $(XWLIB) $(MLIB) $(SLIB) -o $@
75
idiserv.o: $(INC)/idi.h \
79
idiclt.o: $(INC)/idi.h \
83
Xtest.o: $(INC)/idi.h \
86
cursdemo.o: $(INC)/idi.h \
89
textdemo.o: $(INC)/idi.h \