Merge branch 'cde-fixups-1' of ssh://git.code.sf.net/p/cdesktopenv/code into cde...
[oweals/cde.git] / cde / programs / dtsr / Imakefile
1 # $XConsortium: Imakefile /main/12 1996/10/31 18:52:33 cde-ibm $
2 #
3 # (c) Copyright 1996 Digital Equipment Corporation.
4 # (c) Copyright 1996 Hewlett-Packard Company.
5 # (c) Copyright 1996 International Business Machines Corp.
6 # (c) Copyright 1996 Sun Microsystems, Inc.
7 # (c) Copyright 1996 Novell, Inc.
8 # (c) Copyright 1996 FUJITSU LIMITED.
9 # (c) Copyright 1996 Hitachi.
10 #
11
12 INCLUDES = -I. -I$(DTSEARCHSRC) -I$(DTSEARCHSRC)/raima
13 DEFINES  = -DMAIN_PROGRAM
14
15 #ifdef AlphaArchitecture
16 EXTRA_DEFINES = -DBYTE_SWAP -D_XOPEN_SOURCE -D_OSF_SOURCE
17 #endif
18
19 #ifdef USLArchitecture
20 EXTRA_DEFINES = -DBYTE_SWAP -D_XOPEN_SOURCE
21 #endif
22
23 #if defined(i386Architecture) || defined(AMD64Architecture) || \
24     defined(ARMArchitecture)
25 EXTRA_DEFINES = -DBYTE_SWAP
26 #endif
27
28 #ifdef AIXArchitecture
29 BYTE_SWAP_LIB = -lisode
30 #else
31 BYTE_SWAP_LIB =
32 #endif
33
34 DEP_LIBS = $(DEPXLIB) 
35
36 LOCAL_LIBRARIES = $(DTSEARCHLIB)
37
38 SYS_LIBRARIES   = -lc -lm
39
40 PROGRAMS =  $(PROGRAM1) $(PROGRAM2) $(PROGRAM3) $(PROGRAM4) $(PROGRAM5) \
41             $(PROGRAM6) $(PROGRAM7) $(PROGRAM9) $(PROGRAM10)
42
43 PROGRAM1 =  dtsrcreate
44 SRCS1   =  dtsrcreate.c
45 OBJS1   =  dtsrcreate.o
46
47 PROGRAM2 =  dtsrdbrec
48 SRCS2   =  dtsrdbrec.c
49 OBJS2   =  dtsrdbrec.o
50
51 PROGRAM3 =  dtsrhan
52 SRCS3   =  dtsrhan.c
53 OBJS3   =  dtsrhan.o
54
55 PROGRAM4 =  dtsrload
56 SRCS4   =  dtsrload.c
57 OBJS4   =  dtsrload.o
58
59 PROGRAM5 =  dtsrindex
60 SRCS5   =  dtsrindex.c
61 OBJS5   =  dtsrindex.o
62
63 PROGRAM6 =  dtsrdelete
64 SRCS6   =  tomita.c
65 OBJS6   =  tomita.o
66
67 PROGRAM7 =  dtsrclean
68 SRCS7   =  dtsrclean.c
69 OBJS7   =  dtsrclean.o
70
71 PROGRAM9 =  huffcode
72 SRCS9  =  huffcode.c
73 OBJS9  =  huffcode.o
74
75 PROGRAM10 =  dtsrkdump
76 SRCS10  =  dtsrkdump.c
77 OBJS10  =  dtsrkdump.o
78
79 ComplexProgramTarget_1($(PROGRAM1),$(LOCAL_LIBRARIES), /* */)
80 ComplexProgramTarget_2($(PROGRAM2),$(LOCAL_LIBRARIES), /* */)
81 ComplexProgramTarget_3($(PROGRAM3),$(LOCAL_LIBRARIES), /* */)
82 ComplexProgramTarget_4($(PROGRAM4),$(LOCAL_LIBRARIES) $(BYTE_SWAP_LIB), /* */)
83 ComplexProgramTarget_5($(PROGRAM5),$(LOCAL_LIBRARIES), /* */)
84 ComplexProgramTarget_6($(PROGRAM6),$(LOCAL_LIBRARIES), /* */)
85 ComplexProgramTarget_7($(PROGRAM7),$(LOCAL_LIBRARIES) $(BYTE_SWAP_LIB), /* */)
86 ComplexProgramTarget_9($(PROGRAM9),$(LOCAL_LIBRARIES), /* */)
87 ComplexProgramTarget_10($(PROGRAM10),$(LOCAL_LIBRARIES), /* */)