Debian Codegraph @

gui/XIdent/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:13 $ $Revision: 1.2 $
17 #
18 # 051111 last modif
19 #########################################################################
20
21
22 include ../../../local/default.mk
23
24 MAIN = XIdent.o
25 INTERFACES = ApplicWindow.o \
26 HelpShell.o
27
28 EXEC = ident
29 EXECUTABLE = ../../exec/$(EXEC).exe
30
31
32
33
34 APPL_OBJS = alloc.o applic.o misc.o spgrap.o splib.o
35 UX_DIR = ../../GraphLib/libsrc/$(UIMX)
36
37 LINC = ../../incl
38
39 UX_LIBPATH = -L../../lib
40
41 X_CFLAGS =
42 MOTIF_CFLAGS =
43
44 CFLAGS += $(C_OPT) $(DEBUG) $(GUI_OPT) \
45 -I$(LINC) -I$(INC) -I$(UX_DIR)/include \
46 $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \
47 $(XMINC) $(X11INC)
48
49 # The following object files are provided to work around a motif bug.
50 # They are not necessarily needed to compile your application.
51 LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)
52 XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)
53
54 LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -lxcon \
55 -lgmidas -lmidas
56
57 LIBS = $(LIBDIR)/libxcon.a \
58 $(LIBDIR)/libmidas.a
59
60 OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS)
61
62 all: $(EXECUTABLE)
63
64 $(EXECUTABLE): $(OBJS) $(LIBS)
65 $(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) $(SLIB) -o $(EXECUTABLE)
66 $(STRIP) $(EXECUTABLE)
67 @echo "done"
68
69 clean:
70 $(RM) $(OBJS)
71
72 clean_exec:
73 $(RM) $(EXECUTABLE)
74
75
76 tmp_makefile: makefile
77 sed -e 's/^MAIN.*//' \
78 -e 's/^INTERFACES.*//' \
79 -e 's/^CMAIN/MAIN/' \
80 -e 's/^CINTERFACES/INTERFACES/' \
81 -e 's/\([^^]\)\.o/\1\.o/g' \
82 -e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile
83 rm -f makefile
84 mv tmp_makefile makefile
85
86
87
88
89
90
91