comparison lwlib/energize/Makefile.in.in @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 /* Makefile for Energize dialog boxes
2 Copyright (C) 1994 Lucid, Inc.
3
4 This file is part of the Lucid Widget Library.
5
6 The Lucid Widget Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 The Lucid Widget Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 srcdir=@srcdir@
21 C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
22 C_SWITCH_SITE=@C_SWITCH_SITE@
23
24 SHELL=/bin/sh
25
26 CC=@CC@
27 CFLAGS=@CFLAGS@
28 CPP=@CPP@
29 RANLIB=@RANLIB@
30 @SET_MAKE@
31
32 RM = rm -f
33 AR = ar cq
34
35 #define THIS_IS_YMAKEFILE
36 #define NOT_C_CODE
37 #include "../../src/config.h"
38
39 /* With the traditional VPATH setting, it is not possible to
40 simultaneously compile in-place and in another directory. The
41 mistaken definition is that *all* dependencies are searched for in
42 the VPATH directory, rather than just the dependencies that are not
43 themselves targets. Thus, if there is an up-to-date .o file in the
44 in-place location, it will not get recompiled in the not-in-place
45 location.
46
47 The GNU Make `vpath' directive continues this tradition, but at
48 least lets you restrict the classes of files that it applies to.
49 This allows us to kludge around the problem. */
50 #ifdef USE_GNU_MAKE
51 vpath %.c @srcdir@
52 vpath %.h @srcdir@
53 /* now list files that should NOT be searched in the srcdir.
54 This includes any .c or .h that's built from something else
55 (e.g. a .in file). */
56 /* none here */
57 #else
58 VPATH=@srcdir@
59 #endif
60
61 #ifndef C_SWITCH_MACHINE
62 #define C_SWITCH_MACHINE
63 #endif
64
65 #ifndef C_SWITCH_SYSTEM
66 #define C_SWITCH_SYSTEM
67 #endif
68
69 #ifndef C_SWITCH_X_SYSTEM
70 #define C_SWITCH_X_SYSTEM
71 #endif
72
73 #ifndef C_SWITCH_X_MACHINE
74 #define C_SWITCH_X_MACHINE
75 #endif
76
77 #if defined (CONST_IS_LOSING)
78 # define CONST_FLAG -DCONST_IS_LOSING
79 #else
80 # define CONST_FLAG
81 #endif
82
83 GENERATED_SRC = blpsheet.c build.c classbr_ps.c ctreebr_ps.c debuggerps.c \
84 editmode.c leb_psheet.c projectdisp.c projectps.c search.c \
85 target.c
86 SRCS = $(GENERATED_SRC)
87 OBJS = blpsheet.o build.o classbr_ps.o ctreebr_ps.o debuggerps.o \
88 editmode.o leb_psheet.o projectdisp.o projectps.o search.o \
89 target.o
90
91 #ifdef ENERGIZE
92 all:: $(OBJS)
93 #else
94 all::
95 #endif
96
97 ALL_CFLAGS = -I. C_SWITCH_MACHINE C_SWITCH_SITE C_SWITCH_X_SITE \
98 C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM \
99 C_SWITCH_SYSTEM ${CFLAGS} CONST_FLAG
100
101 .SUFFIXES: .xd .xdc
102
103 .c.o:
104 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
105
106 blpsheet.c: blpsheet.xdc
107 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_breaklist_p_sheet > $@
108 build.c:
109 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_build_dialog > $@
110 classbr_ps.c: classbr_ps.xdc
111 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_class_browser_p_sheet > $@
112 ctreebr_ps.c: ctreebr_ps.xdc
113 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_call_browser_p_sheet > $@
114 debuggerps.c: debuggerps.xdc
115 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_debugger_p_sheet > $@
116 editmode.c: editmode.xdc
117 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_editmode_dialog > $@
118 leb_psheet.c: leb_psheet.xdc
119 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_le_browser_p_sheet > $@
120 projectdisp.c:
121 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_project_display_dialog > $@
122 projectps.c: projectps.xdc
123 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_project_p_sheet > $@
124 search.c: search.xdc
125 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_search_dialog > $@
126 target.c: target.xdc
127 ${srcdir}/fidget-widget ${srcdir}/$(@:.c=.xdc) create_target_dialog > $@
128
129 FRC.mostlyclean:
130 mostlyclean: FRC.mostlyclean
131 rm -f $(GENERATED_SRC) *.o
132 clean: mostlyclean
133 distclean: clean
134 rm -f Makefile Makefile.in
135 realclean: distclean
136 extraclean: distclean
137 -rm -f *~ \#* m/?*~ s/?*~