Debian Codegraph @

gui/XHelp/src/makefile

raw
1 ########################################################################
2 #
3 # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.
4 #
5 # EXECUTABLE is the name of the executable to be created
6 # MAIN is the .o file containing your main() function
7 # INTERFACES is a list of the generated C code files
8 # APP_OBJS is a (possibly empty) list of the object code
9 # files that form the non-interface portion of
10 # your application
11 #
12 # In the first three statements, the variables on the right
13 # of the equal sign will be replaced with their corresponding
14 # values when the makefile is automatically generated.
15 #
16 # $Date: 2005-11-16 14:21:10 $ $Revision: 1.2 $
17 #
18 # 051111 last modif
19 #########################################################################
20
21
22 include ../../../local/default.mk
23
24
25 MAIN = XHelp.o
26 INTERFACES = ApplicWindow.o \
27 transientShell1.o \
28 transientShell2.o \
29 transientShell3.o \
30 transientShell4.o \
31 transientShell5.o \
32 transientShell6.o \
33 comm_monit.o
34
35 EXEC = help
36 EXECUTABLE = ../../exec/$(EXEC).exe
37
38
39
40
41 MIDASMON = ../../../monit
42 APPL_OBJS = $(MIDASMON)/dspout.o $(MIDASMON)/helpme.o
43 UX_DIR = ../../GraphLib/libsrc/$(UIMX)
44
45 LINC = ../../incl
46
47 UX_LIBPATH = -L../../lib
48
49 X_CFLAGS =
50 MOTIF_CFLAGS =
51
52 CFLAGS += $(C_OPT) $(DEBUG) $(GUI_OPT) \
53 -I$(LINC) -I$(INC) -I$(UX_DIR)/include \
54 $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \
55 $(XMINC) $(X11INC)
56
57 # The following object files are provided to work around a motif bug.
58 # They are not necessarily needed to compile your application.
59 LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)
60 XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)
61
62 LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -lmidas
63 LIBS = $(LIBDIR)/libmidas.a
64
65 OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS)
66
67 all: $(EXECUTABLE)
68
69 $(EXECUTABLE): $(OBJS) $(LIBS)
70 $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) $(SLIB) -o $(EXECUTABLE)
71 $(STRIP) $(EXECUTABLE)
72 @echo "done"
73
74 clean:
75 $(RM) $(MAIN) $(INTERFACES)
76
77 clean_exec:
78 $(RM) $(EXECUTABLE)
79
80
81 tmp_makefile: makefile
82 sed -e 's/^MAIN.*//' \
83 -e 's/^INTERFACES.*//' \
84 -e 's/^CMAIN/MAIN/' \
85 -e 's/^CINTERFACES/INTERFACES/' \
86 -e 's/\([^^]\)\.o/\1\.o/g' \
87 -e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile
88 rm -f makefile
89 mv tmp_makefile makefile
90
91
92
93
94
95