OpenIndiana and Solaris port
[oweals/cde.git] / cde / programs / dtappbuilder / src / libABil / Imakefile
1 XCOMM $XConsortium: Imakefile /main/8 1996/10/09 14:03:24 drk $
2 XCOMM
3 XCOMM   RESTRICTED CONFIDENTIAL INFORMATION:
4 XCOMM   
5 XCOMM   The information in this document is subject to special
6 XCOMM   restrictions in a confidential disclosure agreement between
7 XCOMM   HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
8 XCOMM   document outside HP, IBM, Sun, USL, SCO, or Univel without
9 XCOMM   Sun's specific written approval.  This document and all copies
10 XCOMM   and derivative works thereof must be returned or destroyed at
11 XCOMM   Sun's request.
12 XCOMM
13 XCOMM (c) Copyright 1996 Digital Equipment Corporation.
14 XCOMM (c) Copyright 1996 Hewlett-Packard Company.
15 XCOMM (c) Copyright 1996 International Business Machines Corp.
16 XCOMM (c) Copyright 1993,1996 Sun Microsystems, Inc.
17 XCOMM (c) Copyright 1996 Novell, Inc. 
18 XCOMM (c) Copyright 1996 FUJITSU LIMITED.
19 XCOMM (c) Copyright 1996 Hitachi.
20
21 #define DoNormalLib     YES
22 #define DoSharedLib     NO
23 #define DoDebugLib      NO
24 #define DoProfileLib    NO
25 #define LibName         ABil
26 #define LibHeaders      NO
27 #define LibInstall      NO
28
29 #include "../ab.tmpl"
30 #include "../ab.rules"
31
32       INCLUDES = -I. -I$(ABINCLUDES)
33 DEPEND_DEFINES = $(DEPENDDEFINES)
34        DEFINES =
35
36 SOURCES.h.shipped=
37
38 SOURCES.h.shared= \
39         abuil_load.h \
40         abuil_print.h \
41         bil.h \
42         bil_parse.h \
43         gil.h
44
45 SOURCES.h.unshared= \
46         abuil_loadP.h \
47         bilP.h \
48         bil_loadattP.h \
49         gilP.h \
50         gil_loadattP.h \
51         loadP.h
52
53 SOURCES.l = 
54
55 SOURCES.y = \
56         bil_parse.y
57
58 SRCS =  abuil_load.c                    abuil_print.c \
59         abuil_resource_attr_map.c       abuil_trav.c \
60         abuil_widget_obj_map.c          bil.c \
61         bil_lexer.c                     bil_loadact.c \
62         bil_loadatt.c                   bil_loadfile.c \
63         bil_loadobj.c                   bil_parse.c \
64         bil_store.c                     gil.c \
65         gil_loadact.c                   gil_loadatt.c \
66         gil_loadfile.c                  gil_loadobj.c \
67         load.c
68
69 OBJS =  abuil_load.o                    abuil_print.o \
70         abuil_resource_attr_map.o       abuil_trav.o \
71         abuil_widget_obj_map.o          bil.o \
72         bil_lexer.o                     bil_loadact.o \
73         bil_loadatt.o                   bil_loadfile.o \
74         bil_loadobj.o                   bil_parse.o \
75         bil_store.o                     gil.o \
76         gil_loadact.o                   gil_loadatt.o \
77         gil_loadfile.o                  gil_loadobj.o \
78         load.o
79
80 SYS_LIBRARIES = -lm $(ICONVSYSLIB) $(DYNLIBSYSLIB) $(REGEXSYSLIB)
81
82 #ifdef  SunArchitecture
83 WAITTARGET = .WAIT
84 #endif  /* SunArchitecture */
85
86        LINTLIBS = $(XINPUTLIB) $(DTHELPLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB)
87 LOCAL_LIBRARIES = $(XINPUTLIB) $(DTHELPLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB)
88
89 #include <Library.tmpl>
90
91 includes:: bil_parse.h
92
93 bil_parse.h + bil_parse.c:      bil_parse.y
94         $(YACC) -d $(YACCFLAGS) bil_parse.y
95         ${RM} bil_parse.h bil_parse.c
96         sed -e "s/\([^A-Za-z]\)yy/\1AByy/g" -e "s/^yy/AByy/" < y.tab.h > bil_parse.h
97         sed -e "s/\([^A-Za-z]\)yy/\1AByy/g" -e "s/^yy/AByy/" < y.tab.c > bil_parse.c
98         ${RM} y.tab.h y.tab.c
99     
100 bil_lex.c:      bil_lex.l
101         $(LEX) bil_lex.l
102         ${RM} bil_lex.c
103         sed -e "s/\([^A-Za-z]\)yy/\1AByy/g" -e "s/^yy/AByy/" < lex.yy.c > bil_lex.c
104         ${RM} lex.yy.c
105
106 DependTarget()
107
108 LOCAL_LIBRARIES= \
109         ./libABil.a \
110         ../libABobjXm/libABobjXm.a \
111         ../libABobj/libABobj.a \
112         ../libAButil/libAButil.a
113
114 bil_test: bil_test.o $(LOCAL_LIBRARIES)
115         $(CC) $(CFLAGS) -o bil_test bil_test.o $(LOCAL_LIBRARIES)
116
117 LinkFileList(shared_includes,$(SOURCES.h.shared),../include/ab_private,../../libABil)
118
119 includes:: shared_includes $(WAITTARGET)
120 sdtgilcvt: libABil.a
121 dtcodegen: libABil.a